docs/app/templates/chat-app.md
The following is a python chat app. It is 100% Python-based, including the UI, all using Reflex. Easily create and delete chat sessions. The application is fully customizable and no knowledge of web dev is required to use it and it has responsive design for various devices.
To run this app locally, install Reflex and run:
reflex init --template reflex-chat
Set up your OpenAI API key:
export OPENAI_API_KEY=your-openai-api-key
Install the dependencies and run the app:
pip install -r requirements.txt
reflex run
You can customize the app by modifying the chat/state.py file replacing model = self.openai_process_question with that of other LLM providers and writing your own process question function.