demo-chatbot

demo-chatbot

A template to create any LLM Inference Web Apps using Python only

Stars: 165

Visit
 screenshot

The demo-chatbot repository contains a simple app to chat with an LLM, allowing users to create any LLM Inference Web Apps using Python. The app utilizes OpenAI's GPT-4 API to generate responses to user messages, with the flexibility to switch to other APIs or models. The repository includes a tutorial in the Taipy documentation for creating the app. Users need an OpenAI account with an active API key to run the app by cloning the repository, installing dependencies, setting up the API key in a .env file, and running the main.py file.

README:

Taipy LLM Chat Demo

A conversation about calibers

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

LLM Chatbot Tutorial

How to Use

You need an OpenAI account with an active API key

  1. Clone this repo:
git clone https://github.com/Avaiga/demo-llm-chat.git
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file in the root directory with the following content:
OPENAI_API_KEY=sk-...
  1. Run the app:
python main.py

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for demo-chatbot

Similar Open Source Tools

For similar tasks

For similar jobs