yasserrmd commited on
Commit
e7193a0
1 Parent(s): 7d69e4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,8 +15,8 @@ if 'form_submitted' not in st.session_state:
15
  # Display the form conditionally
16
  if not st.session_state['form_submitted']:
17
  with st.form('myform', clear_on_submit=True):
18
- google_api_key = st.text_input('Google API Key', type='password', disabled=disable)
19
- submitted = st.form_submit_button('Submit', disabled=disable,, on_click=handle_form_submit)
20
  if submitted:
21
  genai.configure(api_key=google_api_key)
22
  st.session_state['form_submitted'] = True
 
15
  # Display the form conditionally
16
  if not st.session_state['form_submitted']:
17
  with st.form('myform', clear_on_submit=True):
18
+ google_api_key = st.text_input('Google API Key', type='password')
19
+ submitted = st.form_submit_button('Submit')
20
  if submitted:
21
  genai.configure(api_key=google_api_key)
22
  st.session_state['form_submitted'] = True