Simple and multifaceted API for AI
Your mileage may vary. If you have a lot of CPU RAM, many features will still work (slowly and/or with lower resolution etc).
Yes! Models and other resources are downloaded automatically. This project aims to fully to utilize the Hugging Face cache system.
I just wanted a unified python API for LLM/TTS and possibly even generating simple images. Too many projects require complicated setups, Docker, etc. Many have also become stale or obsolete as huggingface has generously provided improved APIs and examples. Mainly I wanted something simple enough to modify for my exact needs in any scenario without a huge learning curve. I tried to leave everything accessible enough for you to do the same.
(Note: Some of this is temporary until I decide on a proper way of handling settings.)
A working run.bat is included for reference, but feel free to use your environment of choice (conda, WSL, etc).
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.11 python3.11-dev python3.11-venv
/img/canny/img/depth/img/depth/midas/img/rembg/vid2densepose/txt2img/img2img/inpaint/txt2img/flux/txt2img/canny/txt2img/depth/txt2img/openpose/txt2img/relight/txt2img/instantid/txt2img/cascade/txt2img/controlnet/hy3dgen/txt2model/shape/img2model/lgm/img2model/tsr/img2vid/xt/txt2vid/animate/txt2vid/zero/txt2vid/zeroscope/img2vid/liveportrait/detect/yolos/vision/img2txt/llava/txt2wav/ace-step/txt2wav/stable-audio/txt2wav/musicgen/mmaudio/piano2midi/chat/completions/chat/stream/txt/summary/txt/profile/youtube/download/youtube/captions/youtube/grid/youtube/frames/reddit/download/tts/google/trendsAdd wav files containing samples of the voices you want to use into the voices/ folder. A single example female1.wav is included. The voice parameter of the tts API expects the name of the file (without .wav on the end). There is no training required!
720 commits
Python
58.1%
TypeScript
30.0%
HTML
5.5%
JavaScript
3.3%
CSS
2.6%
Simple and multifaceted API for AI
Your mileage may vary. If you have a lot of CPU RAM, many features will still work (slowly and/or with lower resolution etc).
Yes! Models and other resources are downloaded automatically. This project aims to fully to utilize the Hugging Face cache system.
I just wanted a unified python API for LLM/TTS and possibly even generating simple images. Too many projects require complicated setups, Docker, etc. Many have also become stale or obsolete as huggingface has generously provided improved APIs and examples. Mainly I wanted something simple enough to modify for my exact needs in any scenario without a huge learning curve. I tried to leave everything accessible enough for you to do the same.
(Note: Some of this is temporary until I decide on a proper way of handling settings.)
A working run.bat is included for reference, but feel free to use your environment of choice (conda, WSL, etc).
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.11 python3.11-dev python3.11-venv
/img/canny/img/depth/img/depth/midas/img/rembg/vid2densepose/txt2img/img2img/inpaint/txt2img/flux/txt2img/canny/txt2img/depth/txt2img/openpose/txt2img/relight/txt2img/instantid/txt2img/cascade/txt2img/controlnet/hy3dgen/txt2model/shape/img2model/lgm/img2model/tsr/img2vid/xt/txt2vid/animate/txt2vid/zero/txt2vid/zeroscope/img2vid/liveportrait/detect/yolos/vision/img2txt/llava/txt2wav/ace-step/txt2wav/stable-audio/txt2wav/musicgen/mmaudio/piano2midi/chat/completions/chat/stream/txt/summary/txt/profile/youtube/download/youtube/captions/youtube/grid/youtube/frames/reddit/download/tts/google/trendsAdd wav files containing samples of the voices you want to use into the voices/ folder. A single example female1.wav is included. The voice parameter of the tts API expects the name of the file (without .wav on the end). There is no training required!
720 commits
Python
58.1%
TypeScript
30.0%
HTML
5.5%
JavaScript
3.3%
CSS
2.6%