Build Your Own Chatbot πŸ€– with openAI GPT-3 and Streamlit 🎈

Avra
4 min readDec 24, 2022

Creating a Chatbot Has Never Been Easier with GPT-3 and Streamlit

πŸ‘¨πŸΎβ€πŸ’» GitHub ⭐️| 🐦 Twitter | πŸ“Ή YouTube | β˜•οΈ BuyMeaCoffee | Ko-fiπŸ’œ

Not a medium member ? Use this link and read the article for free!

TL;DR

  • Streamlit is used to create the chatbot interface and initialize variables to store the chat history.
  • The chat history is displayed by iterating through the generated and past lists and using the message function to display each message.
  • The tutorial provides a detailed guide on how to build a chatbot using OpenAI’s GPT-3 API and Streamlit.

The current blog post is well explained in this video ‡️

Note : Consider this post/video tutorial as a continutation of the previous tutorial on Summarizing Scientific Articles with OpenAI ✨ and Streamlit 🎈 .

πŸ“Œ Importing the libraries

--

--

Avra

Helping Developers to Build Web Apps with AI stacks & Large Language Models. Community Lead, Databutton. Biophysics, PhD Candidate