theekshana commited on
Commit
c11bc52
1 Parent(s): 59dd032

api key bug

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -106,17 +106,17 @@ def side_bar():
106
  help="enter an openai api key created from 'https://platform.openai.com/account/api-keys'",
107
  )
108
 
109
- submit_key = st.form_submit_button(
110
- "Save key",
111
- # on_click=update_parameters_change
112
- )
113
-
114
- if submit_key:
115
- st.session_state.openai_api_key = api_key
116
- # st.text(st.session_state.openai_api_key)
117
- alert = st.success("openai api key updated")
118
- time.sleep(1) # Wait for 3 seconds
119
- alert.empty() # Clear the alert
120
 
121
 
122
  st.markdown("\n")
 
106
  help="enter an openai api key created from 'https://platform.openai.com/account/api-keys'",
107
  )
108
 
109
+ submit_key = st.form_submit_button(
110
+ "Save key",
111
+ # on_click=update_parameters_change
112
+ )
113
+
114
+ if submit_key:
115
+ st.session_state.openai_api_key = api_key
116
+ # st.text(st.session_state.openai_api_key)
117
+ alert = st.success("openai api key updated")
118
+ time.sleep(1) # Wait for 3 seconds
119
+ alert.empty() # Clear the alert
120
 
121
 
122
  st.markdown("\n")