Spaces:
Paused
Paused
Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,69 +1,64 @@
|
|
| 1 |
---
|
| 2 |
-
title: SillyTavern (
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: blue
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
app_port: 8000 # SillyTavern default port
|
| 9 |
-
#
|
| 10 |
secrets:
|
| 11 |
- name: CONFIG_YAML
|
| 12 |
description: "Contents of your config.yaml file"
|
| 13 |
-
required: true
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
build:
|
| 18 |
-
args:
|
| 19 |
-
PLUGINS: "https://github.com/fuwei99/data-sync.git,https://github.com/fuwei99/plugin-manager.git" # Example default plugins
|
| 20 |
---
|
| 21 |
|
| 22 |
-
# SillyTavern
|
| 23 |
|
| 24 |
-
This Space runs SillyTavern
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
* Clones SillyTavern directly from GitHub (`staging` branch).
|
| 29 |
-
* Dynamically installs plugins specified via a build argument.
|
| 30 |
-
* Uses a runtime secret (`CONFIG_YAML`) to configure SillyTavern, keeping your configuration private.
|
| 31 |
|
| 32 |
## Setup and Deployment Steps
|
| 33 |
|
| 34 |
-
1. **
|
| 35 |
-
*
|
| 36 |
-
*
|
| 37 |
|
| 38 |
-
2. **
|
| 39 |
-
*
|
| 40 |
-
*
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
-
3. **Configure
|
| 43 |
* Go to your Space's **Settings** tab on Hugging Face.
|
| 44 |
* Navigate to the **Secrets** section.
|
| 45 |
-
*
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
* **Default:** If you don't set this build argument, the default specified in the `README.md` header metadata (`build.args.PLUGINS`) might be used, or it might default to empty depending on Hugging Face's handling. Check the Dockerfile `ARG PLUGINS=""` line for the ultimate default if none is provided elsewhere.
|
| 59 |
|
| 60 |
-
|
| 61 |
-
* Commit any changes to your Space repository.
|
| 62 |
* Hugging Face should automatically start building the Docker image based on the `Dockerfile`.
|
| 63 |
-
* The build process will clone SillyTavern and
|
| 64 |
* Once the build is complete, the Space should launch SillyTavern.
|
| 65 |
|
| 66 |
-
## Accessing SillyTavern
|
| 67 |
|
| 68 |
* Access the main SillyTavern interface via the public URL of your Space.
|
| 69 |
-
* If you installed plugins
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: SillyTavern (Git Deploy) with Dynamic Plugins
|
| 3 |
+
emoji: 🚀
|
| 4 |
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
app_port: 8000 # SillyTavern default port
|
| 9 |
+
# Add secrets
|
| 10 |
secrets:
|
| 11 |
- name: CONFIG_YAML
|
| 12 |
description: "Contents of your config.yaml file"
|
| 13 |
+
required: true # Keep config required
|
| 14 |
+
- name: PLUGINS
|
| 15 |
+
description: "Comma-separated list of Git URLs for plugins to install"
|
| 16 |
+
required: false # Make plugins optional
|
|
|
|
|
|
|
|
|
|
| 17 |
---
|
| 18 |
|
| 19 |
+
# SillyTavern with Dynamic Plugins (Git Deployment)
|
| 20 |
|
| 21 |
+
This Space runs SillyTavern by cloning the core repository directly from GitHub and dynamically installing plugins specified via Hugging Face Secrets.
|
| 22 |
|
| 23 |
+
**IMPORTANT:** This setup requires you to provide your `config.yaml` content as a Hugging Face Secret named `CONFIG_YAML`. Optionally, you can specify plugins to install via a secret named `PLUGINS`.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
## Setup and Deployment Steps
|
| 26 |
|
| 27 |
+
1. **Prepare `config.yaml`:**
|
| 28 |
+
* Ensure you have a valid `config.yaml` file for SillyTavern.
|
| 29 |
+
* **Remove any comments** from the file, as they might interfere with environment variable parsing.
|
| 30 |
|
| 31 |
+
2. **Upload Files to Hugging Face:**
|
| 32 |
+
* Clone your Hugging Face Space repository locally or use the web UI.
|
| 33 |
+
* Add/replace the following files in the root of your Space repository:
|
| 34 |
+
* This `README.md` file.
|
| 35 |
+
* The `Dockerfile` provided in our conversation.
|
| 36 |
+
* Commit and push the changes. **You no longer need to upload `sillytavern.zip`.**
|
| 37 |
|
| 38 |
+
3. **Configure Secrets:**
|
| 39 |
* Go to your Space's **Settings** tab on Hugging Face.
|
| 40 |
* Navigate to the **Secrets** section.
|
| 41 |
+
* **Add `CONFIG_YAML` Secret:**
|
| 42 |
+
* Click **New secret**.
|
| 43 |
+
* Enter the name exactly as `CONFIG_YAML`.
|
| 44 |
+
* Paste the **entire content** of your prepared (comment-free) `config.yaml` file into the **Secret value** field.
|
| 45 |
+
* Save the secret.
|
| 46 |
+
* **(Optional) Add `PLUGINS` Secret:**
|
| 47 |
+
* Click **New secret** again.
|
| 48 |
+
* Enter the name exactly as `PLUGINS`.
|
| 49 |
+
* Paste a **comma-separated list** of the Git URLs for the plugins you want to install into the **Secret value** field. **Ensure there are no spaces around the commas.** Example:
|
| 50 |
+
```
|
| 51 |
+
https://github.com/fuwei99/plugin-manager.git,https://github.com/fuwei99/cloud-saves.git,https://github.com/fuwei99/data-sync.git
|
| 52 |
+
```
|
| 53 |
+
* Save the secret. If you leave this secret empty or don't create it, no extra plugins will be installed.
|
|
|
|
| 54 |
|
| 55 |
+
4. **Build and Launch:**
|
|
|
|
| 56 |
* Hugging Face should automatically start building the Docker image based on the `Dockerfile`.
|
| 57 |
+
* The build process will clone the SillyTavern core (`staging` branch) and then clone/install dependencies for the plugins listed in the `PLUGINS` secret.
|
| 58 |
* Once the build is complete, the Space should launch SillyTavern.
|
| 59 |
|
| 60 |
+
## Accessing SillyTavern and Plugins
|
| 61 |
|
| 62 |
* Access the main SillyTavern interface via the public URL of your Space.
|
| 63 |
+
* If you installed plugins, access their UIs as needed (e.g., `/api/plugins/plugin-manager/ui`, `/api/plugins/data-sync/ui`, `/api/plugins/cloud-saves/ui`). Check each plugin's documentation for its specific path.
|
| 64 |
+
* Remember to configure plugins like `data-sync` or `cloud-saves` within their respective UIs (repo URL, auth tokens, etc.).
|