This repository provides a text-based dialogue platform that operates on the Web.
Python == 3.8
- Build web server using software like nginx.
- Clone repository
git clone https://github.com/nu-dialogue/dialogue-platform.git
- Install libraries
- These are the libraries required to use GPT-3.5/4. If you use another model, you need to install the library corresponding to that model.
pip install -r requirements.txt
- Set API key
- Set your OpenAI API key to the environment variable
OPENAI_API_KEY
.
export OPENAI_API_KEY="<Your API key>"
log/
: Directory for log outputserver.py
: Script that manage Web servergpt_bot.py
: Script that generates speech using GPT-3.5/4interface.py
: Script that defines HTML of dialogue Interfacestart.sh
: Shell script for execution
bash start.sh