mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-03-03 02:20:02 +00:00
484da190d93cae321f34df040ab1aa1aae63120e
TavernAI - Extras
What is this
A set of unofficial APIs for various TavernAI extensions
How to run
- Install Python 3.10
- Run
pip install -r requirements.txt - Run
python server.py
Included functionality
BLIP model for image captioning
POST /api/caption
Input
{ "image": "base64 encoded image" }
Output
{ "caption": "caption of the posted image" }
BART model for text summarization
Not implemented yet
BERT model for text classification
Not implemented yet
Additional options
| Flag | Description |
|---|---|
--port |
Specify the port on which the application is hosted. Default: 5100 |
--listen |
Hosts the app on the local network |
--share |
Shares the app on CloudFlare tunnel |
--bart-model |
Load a custom BART model. Expects a HuggingFace model ID. Default: Qiliang/bart-large-cnn-samsum-ChatGPT_v3 |
--bert-model |
Load a custom BERT model. Expects a HuggingFace model ID. Default: bhadresh-savani/distilbert-base-uncased-emotion |
--blip-model |
Load a custom BLIP model. Expects a HuggingFace model Id. Default: Salesforce/blip-image-captioning-base |
Languages
Python
98.7%
Cuda
0.7%
Cython
0.4%
Shell
0.1%