Spaces:
Running
Running
Erva Ulusoy
commited on
Commit
·
0ee926e
1
Parent(s):
2f8d670
disable generate predictions button when there are no new inputs
Browse files- ProtHGT_app.py +2 -2
ProtHGT_app.py
CHANGED
@@ -223,8 +223,8 @@ with st.sidebar:
|
|
223 |
st.session_state.previous_inputs = current_inputs
|
224 |
|
225 |
# Add a button to trigger predictions - disabled if already submitted with current inputs
|
226 |
-
button_disabled = st.session_state.submitted
|
227 |
-
if st.button("Generate Predictions", disabled=button_disabled):
|
228 |
st.session_state.submitted = True
|
229 |
|
230 |
if st.session_state.submitted:
|
|
|
223 |
st.session_state.previous_inputs = current_inputs
|
224 |
|
225 |
# Add a button to trigger predictions - disabled if already submitted with current inputs
|
226 |
+
button_disabled = st.session_state.submitted
|
227 |
+
if st.button("Generate Predictions", disabled=button_disabled, key="generate_predictions"):
|
228 |
st.session_state.submitted = True
|
229 |
|
230 |
if st.session_state.submitted:
|