Skip to content

Latest commit

 

History

History
 
 

flask

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Deep Chat

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.

📲 UI component

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.

💻 Local setup

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.

🔧 Improvements

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.