Skip to content

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

Notifications You must be signed in to change notification settings

Avaiga/demo-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. Run the app using your API key as an argument:
python main.py sk-XXXXX...XXXXX

(You can also set the OPENAI_API_KEY environment variable instead of passing it as an argument)

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published