MarcosRodrigo commited on
Commit
a015d4a
·
verified ·
1 Parent(s): 4ff1964

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -138,12 +138,13 @@ if menu == "Poll":
138
  st.session_state.history.append({"Date": timestamp, "Summary": df})
139
  st.success(f"Summary submitted at {timestamp}")
140
  st.session_state.step = 1
141
- st.experimental_rerun()
 
142
 
143
  # "Current" view to display the current summary of all users' selections
144
  elif menu == "Current":
145
  st.title("Current Selections of All Users")
146
- download_temp_file_from_repo() # Ensure the latest file is downloaded
147
  current_df = load_current_selections()
148
  st.table(current_df)
149
 
 
138
  st.session_state.history.append({"Date": timestamp, "Summary": df})
139
  st.success(f"Summary submitted at {timestamp}")
140
  st.session_state.step = 1
141
+ # Use st.experimental_set_query_params() to force a refresh
142
+ st.experimental_set_query_params(step="reset")
143
 
144
  # "Current" view to display the current summary of all users' selections
145
  elif menu == "Current":
146
  st.title("Current Selections of All Users")
147
+ download_temp_file_from_repo()
148
  current_df = load_current_selections()
149
  st.table(current_df)
150