aimerou / gradio-chatgpt-app

A demonstration of a chatbot interface that uses the OpenAI ChatGPT API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

This app is a Chatbot UI that uses the OpenAI ChatGPT API to provide responses to text inputs. It is launched using the Gradio library, which allows the user to enter text queries from a nice interface and receive responses from the chatbot.

image

Install Dependencies

Run:

pip install -r requirements.txt

API Key

The app will need an OpenAI API Key to work. To specify it, create a .env file and write your OpenAI API key

OPENAI_API_KEY=XXXXXXXXX

Start App

Just run:

gradio mywebgpt.py

Then, you can see your app at the url http://127.0.0.1:8080/.

About

A demonstration of a chatbot interface that uses the OpenAI ChatGPT API


Languages

Language:Python 100.0%