From b586e18887fde0507b3d219af72e88190ba5fbd3 Mon Sep 17 00:00:00 2001 From: MUHAMMAD SHAHID <154737925+shahidkha9@users.noreply.github.com> Date: Fri, 23 Feb 2024 15:39:26 +0500 Subject: [PATCH] Update Chatbot.py --- Chatbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chatbot.py b/Chatbot.py index b6fe7ee32..b205261b7 100644 --- a/Chatbot.py +++ b/Chatbot.py @@ -2,13 +2,13 @@ import streamlit as st with st.sidebar: - openai_api_key = st.text_input("OpenAI API Key", key="chatbot_api_key", type="password") + openai_api_key = st.text_input("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", key="chatbot_api_key", type="password") "[Get an OpenAI API key](https://platform.openai.com/account/api-keys)" "[View the source code](https://github.com/streamlit/llm-examples/blob/main/Chatbot.py)" "[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/streamlit/llm-examples?quickstart=1)" st.title("💬 Chatbot") -st.caption("🚀 A streamlit chatbot powered by OpenAI LLM") +st.caption("🚀 A open ai chatbot") if "messages" not in st.session_state: st.session_state["messages"] = [{"role": "assistant", "content": "How can I help you?"}]