shukdevdatta123 commited on
Commit
49e041e
·
verified ·
1 Parent(s): 5b88cc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ st.header("Chat with the Streamlit docs 💬 📚")
15
 
16
  # Sidebar for OpenAI API Key
17
  if 'openai_api_key' not in st.session_state:
18
- st.session_state.openai_api_key = ""
19
 
20
  # Input for OpenAI API Key
21
  st.session_state.openai_api_key = st.sidebar.text_input("Enter your OpenAI API Key:",
 
15
 
16
  # Sidebar for OpenAI API Key
17
  if 'openai_api_key' not in st.session_state:
18
+ st.session_state.openai_api_key = os.environ["OPENAI_API_KEY"]
19
 
20
  # Input for OpenAI API Key
21
  st.session_state.openai_api_key = st.sidebar.text_input("Enter your OpenAI API Key:",