/ChatWaifu-API

A ChatWaifu Version with official ChatGPT API

Primary LanguagePythonMIT LicenseMIT

cover

GitHub PYTHON

original readme

How to run

Create virtual environment (optional)

python -m venv venv
venv\Scripts\activate

Install pytorch

pip3 install torch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 --index-url https://download.pytorch.org/whl/cu117

Install requirements

pip3 install -r requirements.txt

if error occurs, install visual studio and build tools and try again.

Install Ren'py

  • Download Ren'py sdk and add path to environment variable
  • Install Live2D library
Setting - Install library - Install Live2D Cubism

Place your vits model ./userfile/tts/

such this structure:

──┬─userfile/tts/
  ├── config.json
  └── G_128000.pth

Run server

python server.py

Run game

renpy ./ChatWithGPT/

You can get api key here

VITS credit