Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -213,6 +213,8 @@ def search_arxiv(query):
|
|
213 |
#SpeechSynthesis(results)
|
214 |
filename = generate_filename(query, "md")
|
215 |
create_file(filename, query, results, should_save)
|
|
|
|
|
216 |
|
217 |
return results
|
218 |
|
@@ -1479,7 +1481,7 @@ if 'action' in st.query_params:
|
|
1479 |
st.success("Showing a message because 'action=show_message' was found in the URL.")
|
1480 |
elif action == 'clear':
|
1481 |
clear_query_params()
|
1482 |
-
st.rerun()
|
1483 |
|
1484 |
if 'query' in st.query_params:
|
1485 |
query = st.query_params['query'][0] # Get the query parameter
|
|
|
213 |
#SpeechSynthesis(results)
|
214 |
filename = generate_filename(query, "md")
|
215 |
create_file(filename, query, results, should_save)
|
216 |
+
#st.rerun() # refresh to see new files on sidebar
|
217 |
+
|
218 |
|
219 |
return results
|
220 |
|
|
|
1481 |
st.success("Showing a message because 'action=show_message' was found in the URL.")
|
1482 |
elif action == 'clear':
|
1483 |
clear_query_params()
|
1484 |
+
#st.rerun()
|
1485 |
|
1486 |
if 'query' in st.query_params:
|
1487 |
query = st.query_params['query'][0] # Get the query parameter
|