This a simple application of building a Chatbot using Streamlit and OpenAI. This project is just to practice and play with the resource that Streamlit and OpenAI provide to us.
This project is very simple. You first need to obtain an OpenAI API key. OpenAI makes it very easy for users to obtain the key. You can use this link to generate your own OpenAI API key and follow the instruction. If you haven't installed the openai, streamlit, and streamlit_chat libraries, you will aslo need to install them in your current working environment. Once you complete all these step, you are ready to create your own chatbot!
The codes for creating the chatbot is here . If you don't know how to work with st.secrets, you can just create a .txt file to hide your openai.api_key. The rest of the codes should be clear to follow.
Comments