Quickie guide to setting up character expressions in Tavern AI.

What is TavernAI-extras?
Addons for TavernAI. Most popular for allowing character expression packs, but also does image captioning and summarization. Check the github for more info.

Guide
We're following the directions on the github, with baby steps and pics.
Go here: https://github.com/Cohee1207/TavernAI-extras#option-1---conda-recommended-

Install these two things.
things

Start the Anaconda prompt by using windows search and clicking the thing
thing2

When it starts up, this is where you will enter the commands.
command place thing

These are the commands to enter. Don't copy/paste the entire block of text. Paste in one line at a time, hit enter, and wait for it to finish. Installation may take a while.
commands

The last command is:

python server.py --enable-modules=caption,summarize,classify

This is what starts your server. When you run it, if it looks like this, then you've done great so far!
this

Final step is to go back to Tavern, click the three cubes thingy at the top, and put in the address listed on your Anaconda window.
tavern

When you want to start this up again, the GitHub says to do this (it's a lie.):
lie

The actual steps are this, assuming you've completely closed and reopened Anaconda:

1
2
3
conda activate extras
cd TavernAI-extras
python server.py --enable-modules=caption,summarize,classify

Final note: Expressions go in SillyTavern-dev\public\characters
The folder containing the expressions should be named the same as the character.
like this

Using other models (optional)
You can use classification models besides the default one as well. For example, if you want to use
https://huggingface.co/joeddav/distilbert-base-uncased-go-emotions-student

Connect to it by starting your server like so:

python server.py --enable-module=classify --classification-model=joeddav/distilbert-base-uncased-go-emotions-student

This particular one gives you access to 28 emotions rather than the default 6.

.bat file (optional)
If you don't want to start anaconda and run those three lines every time, create a .bat file in the same place as your TavernAI-extras folder (not in side the folder). In the above example, it's C:\Users\Mike. Paste in the following code:

1
2
3
4
CALL C:\ProgramData\miniconda3\condabin\activate.bat
CALL conda activate extras
CALL cd TavernAI-extras
CALL python server.py --enable-modules=caption,summarize,classify

If necessary, modify the first line to wherever you installed Anaconda.

Edit
Pub: 18 Apr 2023 23:46 UTC
Edit: 16 May 2023 17:39 UTC
Views: 6384