Skip to content

A simple but useful chatbot based on gpt-3.5-turbo and whisper-1.

Notifications You must be signed in to change notification settings

silence-tang/gpt-3.5-turbo-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

GPT-ChatBot

This is a simple chatbot based on gpt-3.5-turbo, whisper-1 and tkinter.

Results

GVQnQ.png

Requirements

  1. tkinter
  2. tqdm
  3. openai
  4. wave
  5. pyaudio
  6. playsound
  7. aip (baidu ai sdk)

You can install them simply by running pip install xxx.

Run

  • You can run the app locally by running python chatbot.py.

  • It is worth noting that you should paste your own openai api_key to openai.api_key = "sk-***".

  • If you want to send a message by typing, feel free to type any questions in the text area then press the "Send" button.

  • If you want to send a message by talking, feel free to press the "Record" button and ask your question.

  • If you want the bot to answer you by talking, tick the "is_talk" button.

  • You can set the time(second) for recording your audio by RECODE_SECONDS, which is set to 5 by default.

Enjoy your chat with gpt, have a good time!

Note

Maybe you will encounter problems like "openai.error.APIConnectionError: Error communicating with OpenAI".

This is mainly caused by your local firewalls or Internet settings. If you have VPN on your machine, try to close/start it to avoid the problem.

Releases

No releases published

Packages

No packages published

Languages