This is an example Flask server template that can be used to communicate with the Deep Chat component. It includes a variety of endpoints that can be used to host your own service or act as a proxy for the following AI APIs - OpenAI, HuggingFace, StabilityAI, Cohere.
This project is preconfigured to work with the example UI project. Once both are running - they should be able to communicate with each other right out of the box.
If you are downloading the project via git clone
- we advise you to use shallow cloning with the use of the --depth 1 option to reduce its size:
git clone --depth 1 https://github.com/OvidijusParsiunas/deep-chat.git
Navigate to the src
directory and run the following command to install the required packages:
pip install flask flask-cors load_dotenv
Run the project:
python app.py
If you want to use the proxies, please create an .env
file and define the corresponding environment variables. E.g. if you want to use OpenAI API, define the OPENAI_API_KEY
variable. See the .env.example
file.
If you are experiencing issues with this project or have suggestions on how to improve it, do not hesitate to create a new ticket in Github issues and we will look into it as soon as possible.