diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..b242572ef --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "githubPullRequests.ignoredPullRequestBranches": [ + "main" + ] +} \ No newline at end of file diff --git a/Chatbot.py b/Chatbot.py index b6fe7ee32..0b7e8fb3c 100644 --- a/Chatbot.py +++ b/Chatbot.py @@ -1,8 +1,11 @@ from openai import OpenAI import streamlit as st +import os with st.sidebar: - openai_api_key = st.text_input("OpenAI API Key", key="chatbot_api_key", type="password") +# openai_api_key = st.text_input("OpenAI API Key", key="chatbot_api_key", type="password") +# st.write("The keys are:", st.secrets["donkeykong"]) + openai_api_key = st.secrets["openai1"] "[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)"