Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -115,7 +115,8 @@ def search_arxiv(query):
|
|
| 115 |
result = str(result) # cast as string for these - check content length and format if encoding changes..
|
| 116 |
result=result.replace('\\n', ' ')
|
| 117 |
SpeechSynthesis(result) # Search History Reader / Writer IO Memory - Audio at Same time as Reading.
|
| 118 |
-
|
|
|
|
| 119 |
create_file(filename, query, result, should_save)
|
| 120 |
saved_files = [f for f in os.listdir(".") if f.endswith(".md")]
|
| 121 |
selected_file = st.sidebar.selectbox("Saved Files", saved_files)
|
|
@@ -126,6 +127,7 @@ def search_arxiv(query):
|
|
| 126 |
if st.sidebar.button("๐๏ธ Delete"):
|
| 127 |
os.remove(selected_file)
|
| 128 |
st.warning(f"File deleted: {selected_file}")
|
|
|
|
| 129 |
return result
|
| 130 |
|
| 131 |
# Set page configuration with a title and favicon
|
|
|
|
| 115 |
result = str(result) # cast as string for these - check content length and format if encoding changes..
|
| 116 |
result=result.replace('\\n', ' ')
|
| 117 |
SpeechSynthesis(result) # Search History Reader / Writer IO Memory - Audio at Same time as Reading.
|
| 118 |
+
|
| 119 |
+
filename=generate_filename(query, "md")
|
| 120 |
create_file(filename, query, result, should_save)
|
| 121 |
saved_files = [f for f in os.listdir(".") if f.endswith(".md")]
|
| 122 |
selected_file = st.sidebar.selectbox("Saved Files", saved_files)
|
|
|
|
| 127 |
if st.sidebar.button("๐๏ธ Delete"):
|
| 128 |
os.remove(selected_file)
|
| 129 |
st.warning(f"File deleted: {selected_file}")
|
| 130 |
+
|
| 131 |
return result
|
| 132 |
|
| 133 |
# Set page configuration with a title and favicon
|