Skip to content

Build Your Own ChatGPT with OpenAI API & Gradio

License

Notifications You must be signed in to change notification settings

sunner/ChatGPT-Clone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. Build Yo'own ChatGPT with OpenAI API & Gradio

OpenAI API allows us to build a Chatbot using the latest text-davinci-003 (which many consider as GPT3.5 model). We can use this model to build our ChatGPT clone. Even though it won't be as same as ChatGPT, this is the closest to ChatGPT that we have today. ChatGPT used InstructGPT as base model to develop which is the same as text-davinci-003.

The API is extremely adept at carrying on conversations with humans and even with itself. With just a few lines of instruction, we've seen the API perform as a customer service chatbot that intelligently answers questions without ever getting flustered or a wise-cracking conversation partner that makes jokes and puns. The key is to tell the API how it should behave and then provide a few examples.

working_architecture

2. Instructions

  • Get your OpenAI API key here - https://beta.openai.com/account/api-keys
  • Create and activate virtual environmemt
  • Replace that key in the app.py ode
  • Install the required libraries pip install -r requirements.txt
  • Run python app.py

3. Demo

demo_clone_gpt

Article

Link: https://graspcoding.com/build-yoown-chatgpt-with-openai-api-and-gradio/

About

Build Your Own ChatGPT with OpenAI API & Gradio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%