diff --git a/.gitignore b/.gitignore index a35d5ddc5..46eeaf2a6 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ public/settings.json /thumbnails whitelist.txt .vscode +secrets.json diff --git a/colab/GPU.ipynb b/colab/GPU.ipynb index cf61955e4..74bbee704 100644 --- a/colab/GPU.ipynb +++ b/colab/GPU.ipynb @@ -6,68 +6,8 @@ "metadata": {}, "source": [ "**Links**
\n", - "SillyTavern GitHub: https://github.com/Cohee1207/SillyTavern
\n", "Extensions API GitHub: https://github.com/Cohee1207/SillyTavern-extras/
\n", - "SillyTavern community Discord (support and discussion): https://discord.gg/RZdyAEUPvj
\n", - "Contact the maintainer directly: Cohee#1207" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "cellView": "form", - "id": "_1gpebrnlp5-" - }, - "outputs": [], - "source": [ - "#@title <-- Convert TavernAI characters to SillyTavern format\n", - "\n", - "!mkdir /convert\n", - "%cd /convert\n", - "\n", - "import os\n", - "from google.colab import drive\n", - "\n", - "drive.mount(\"/convert/drive\")\n", - "\n", - "!git clone -b tools https://github.com/EnergoStalin/SillyTavern.git\n", - "%cd SillyTavern\n", - "\n", - "!curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash\n", - "!nvm install 19.1.0\n", - "!nvm use 19.1.0\n", - "\n", - "%cd tools/charaverter\n", - "\n", - "!npm i\n", - "\n", - "path = \"/convert/drive/MyDrive/TavernAI/characters\"\n", - "output = \"/convert/drive/MyDrive/SillyTavern/characters\"\n", - "if not os.path.exists(path):\n", - " path = output\n", - "\n", - "!mkdir -p $output\n", - "!node main.mjs $path $output\n", - "\n", - "drive.flush_and_unmount()\n", - "\n", - "%cd /\n", - "!rm -rf /convert" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "id": "ewkXkyiFP2Hq" - }, - "outputs": [], - "source": [ - "#@title <-- Tap this if you play on Mobile { display-mode: \"form\" }\n", - "%%html\n", - "Press play on the music player to keep the tab alive, then start KoboldAI below (Uses only 13MB of data)
\n", - "