Spaces:
Paused
Paused
Robin Genolet
commited on
Commit
•
6355832
1
Parent(s):
74044e0
fix: inginite loop
Browse files
app.py
CHANGED
@@ -101,7 +101,7 @@ def display_streamlit_sidebar():
|
|
101 |
form.write('Best practice is to only modify temperature or top_p, not both')
|
102 |
|
103 |
submitted = form.form_submit_button("Start session")
|
104 |
-
if submitted:
|
105 |
print('Parameters updated...')
|
106 |
restart_session()
|
107 |
st.session_state['session_started'] = True
|
|
|
101 |
form.write('Best practice is to only modify temperature or top_p, not both')
|
102 |
|
103 |
submitted = form.form_submit_button("Start session")
|
104 |
+
if submitted and not st.session_state['session_started']:
|
105 |
print('Parameters updated...')
|
106 |
restart_session()
|
107 |
st.session_state['session_started'] = True
|