https://github.com/avaiga/demo-chatbot
A template to create any LLM Inference Web Apps using Python only
https://github.com/avaiga/demo-chatbot
chatbot gpt gpt-3 llm openai python taipy
Last synced: about 1 year ago
JSON representation
A template to create any LLM Inference Web Apps using Python only
- Host: GitHub
- URL: https://github.com/avaiga/demo-chatbot
- Owner: Avaiga
- Created: 2023-12-07T14:30:57.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-09-12T06:57:07.000Z (almost 2 years ago)
- Last Synced: 2025-04-03T03:09:07.243Z (about 1 year ago)
- Topics: chatbot, gpt, gpt-3, llm, openai, python, taipy
- Language: Python
- Homepage:
- Size: 599 KB
- Stars: 192
- Watchers: 4
- Forks: 50
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Taipy LLM Chat Demo
A simple app to chat with an LLM which can be used to create any LLM Inference Web Apps using Python only.
This particular app uses OpenAI's GPT-4 API to generate responses to your messages. You can easily change the code to use any other API or model.
## Tutorial
A tutorial on how to create this app is available in the Taipy documentation
## How to Use
**You need an OpenAI account with an active API key**
1. Clone this repo:
```bash
git clone https://github.com/Avaiga/demo-llm-chat.git
```
2. Install dependencies:
```bash
pip install -r requirements.txt
```
3. Create a `.env` file in the root directory with the following content:
```bash
OPENAI_API_KEY=sk-...
```
4. Run the app:
```bash
python main.py
```