Spaces:
Sleeping
Sleeping
Erva Ulusoy
commited on
Commit
·
b2ca546
1
Parent(s):
8b87470
update ProtHGT_app.py
Browse files- ProtHGT_app.py +2 -2
ProtHGT_app.py
CHANGED
@@ -48,7 +48,6 @@ def reset_prediction_state():
|
|
48 |
st.session_state.predictions_df = None
|
49 |
st.session_state.previous_inputs = None
|
50 |
|
51 |
-
|
52 |
def set_generating_predictions():
|
53 |
st.session_state.generating_predictions = True
|
54 |
st.session_state.submitted = True
|
@@ -323,13 +322,14 @@ if st.session_state.submitted:
|
|
323 |
# Reset the flags to release the sidebar
|
324 |
st.session_state.generating_predictions = False
|
325 |
st.session_state.submitted = False
|
|
|
326 |
|
327 |
# Display and filter predictions
|
328 |
st.success("Predictions generated successfully!")
|
329 |
st.markdown("### Filter and View Predictions")
|
330 |
|
331 |
# Create filters
|
332 |
-
col1, col2, col3, col4 = st.columns(4)
|
333 |
|
334 |
with col1:
|
335 |
# Protein filter
|
|
|
48 |
st.session_state.predictions_df = None
|
49 |
st.session_state.previous_inputs = None
|
50 |
|
|
|
51 |
def set_generating_predictions():
|
52 |
st.session_state.generating_predictions = True
|
53 |
st.session_state.submitted = True
|
|
|
322 |
# Reset the flags to release the sidebar
|
323 |
st.session_state.generating_predictions = False
|
324 |
st.session_state.submitted = False
|
325 |
+
st.rerun()
|
326 |
|
327 |
# Display and filter predictions
|
328 |
st.success("Predictions generated successfully!")
|
329 |
st.markdown("### Filter and View Predictions")
|
330 |
|
331 |
# Create filters
|
332 |
+
col1, col2, col3, col4 = st.columns(4)
|
333 |
|
334 |
with col1:
|
335 |
# Protein filter
|