Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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'
|
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
|
|
|
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
|