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:
henk717 2022-01-01 19:45:32 +01:00
parent b32e42cb67
commit 85477272c3
1 changed files with 8 additions and 0 deletions

View File

@ -88,8 +88,16 @@ if [ "$init" != "skip" ]; then
mkdir /content/drive/MyDrive/KoboldAI/userscripts/ mkdir /content/drive/MyDrive/KoboldAI/userscripts/
cd /content/KoboldAI-Client 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 stories
rm -rf 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/stories/ stories
ln -s /content/drive/MyDrive/KoboldAI/settings/ settings ln -s /content/drive/MyDrive/KoboldAI/settings/ settings
ln -s /content/drive/MyDrive/KoboldAI/softprompts/ softprompts ln -s /content/drive/MyDrive/KoboldAI/softprompts/ softprompts