Colab example file handling
Expands the handling of the stories to userscripts and softprompts (Since I expect us to ship an example softprompt in the future). Now also copies the examples to your Google Drive if they are not already present.
This commit is contained in:
parent
b32e42cb67
commit
85477272c3
|
@ -88,8 +88,16 @@ if [ "$init" != "skip" ]; then
|
|||
mkdir /content/drive/MyDrive/KoboldAI/userscripts/
|
||||
|
||||
cd /content/KoboldAI-Client
|
||||
|
||||
cp -rn stories/* /content/drive/MyDrive/KoboldAI/stories/
|
||||
cp -rn userscripts/* /content/drive/MyDrive/KoboldAI/userscripts/
|
||||
cp -rn softprompts/* /content/drive/MyDrive/KoboldAI/softprompts/
|
||||
rm stories
|
||||
rm -rf stories/
|
||||
rm userscripts
|
||||
rm -rf userscripts/
|
||||
rm softprompts
|
||||
rm -rf softprompts/
|
||||
ln -s /content/drive/MyDrive/KoboldAI/stories/ stories
|
||||
ln -s /content/drive/MyDrive/KoboldAI/settings/ settings
|
||||
ln -s /content/drive/MyDrive/KoboldAI/softprompts/ softprompts
|
||||
|
|
Loading…
Reference in New Issue