Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
|
|
|
| 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()
|
| 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 |
|