[go: up one dir, main page]

Skip to content

Create your ChatBot using OpenAI API (ChatGPT). Enter your API Key and Run Single File. Structured and Commented Code for Ease. Also added WebApp Template for Reference!

License

Notifications You must be signed in to change notification settings

iSiddharth20/Chatbot-Using-OpenAI-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatBot using OpenAI (ChatGPT) API (with GUI)

Ready to Use Code to have your own ChatBot using OpenAI API.
Also added WebApp Template for Reference! Thanks to Lyubomir

Steps to Use the ChatBot:

  • This Codebase requires OpenAI API Key, kindly make sure you get one.
  • Install Necessary Dependencies from 'requirements.txt'.
    • Run : pip install -r requirements.txt
  • Open and Store your API Key in "Code/BotDefinition.py".
  • Run "Code/ChatBot.py" for Terminal Based ChatBot.
  • Run "Code/GuiChatBot.py" for WebApp Based ChatBot.
  • That's it! Just enter your prompts and get the responses.
  • If you want to terminate the chat, just enter 'End Chat'.

How to get the Best out of this Piece of Code:

  • Use it in Terminal/CMD for quick response.
  • Use it in Jupyter Notebook / Google Colab for more interactive and complex prompts.
  • Use it in the BackEnd of any WebApp for enhanced functionality.
  • Whatever and However you wish to use it!

Here is a Sample of How it Works in the Terminal:

Sample in Terminal

About

Create your ChatBot using OpenAI API (ChatGPT). Enter your API Key and Run Single File. Structured and Commented Code for Ease. Also added WebApp Template for Reference!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published