Rundstedtz commited on
Commit
6f3ba26
1 Parent(s): 7cd6ec3

Update app.py with openai_api key entry

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -180,6 +180,8 @@ def app_layout():
180
 
181
  # API Key input
182
  openai_api_key = st.sidebar.text_input("Enter your OpenAI API key", type="password")
 
 
183
 
184
  # File Upload
185
  st.sidebar.write("## Upload Data")
 
180
 
181
  # API Key input
182
  openai_api_key = st.sidebar.text_input("Enter your OpenAI API key", type="password")
183
+ os.environ["OPENAI_API_KEY"] = openai_api_key
184
+ openai.api_key = openai_api_key
185
 
186
  # File Upload
187
  st.sidebar.write("## Upload Data")