Spaces:
Sleeping
Sleeping
Erva Ulusoy
commited on
Commit
·
1e273b2
1
Parent(s):
fb8112c
removed redundant button
Browse files- ProtHGT_app.py +1 -6
ProtHGT_app.py
CHANGED
@@ -253,11 +253,6 @@ with st.sidebar:
|
|
253 |
st.session_state.submitted = False
|
254 |
st.session_state.previous_inputs = current_inputs
|
255 |
|
256 |
-
# Add a button to trigger predictions - disabled if already submitted with current inputs
|
257 |
-
button_disabled = st.session_state.submitted
|
258 |
-
if st.button("Generate Predictions", disabled=button_disabled, key="generate_predictions"):
|
259 |
-
st.session_state.submitted = True
|
260 |
-
|
261 |
if st.session_state.submitted:
|
262 |
with st.spinner("Generating predictions..."):
|
263 |
|
@@ -310,7 +305,7 @@ if st.session_state.submitted:
|
|
310 |
st.session_state.predictions_df = predictions_df
|
311 |
|
312 |
st.session_state.generating_predictions = False
|
313 |
-
|
314 |
# Display and filter predictions
|
315 |
st.success("Predictions generated successfully!")
|
316 |
st.markdown("### Filter and View Predictions")
|
|
|
253 |
st.session_state.submitted = False
|
254 |
st.session_state.previous_inputs = current_inputs
|
255 |
|
|
|
|
|
|
|
|
|
|
|
256 |
if st.session_state.submitted:
|
257 |
with st.spinner("Generating predictions..."):
|
258 |
|
|
|
305 |
st.session_state.predictions_df = predictions_df
|
306 |
|
307 |
st.session_state.generating_predictions = False
|
308 |
+
|
309 |
# Display and filter predictions
|
310 |
st.success("Predictions generated successfully!")
|
311 |
st.markdown("### Filter and View Predictions")
|