Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -121,9 +121,9 @@ def search_arxiv(query):
|
|
| 121 |
with open(f"{base_filename}.md", 'w') as file:
|
| 122 |
try:
|
| 123 |
content = query.strip() + '\r\n' + result
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
|
| 128 |
#has_python_code = re.search(r"```python([\s\S]*?)```", prompt.strip() + '\r\n' + response)
|
| 129 |
#has_python_code = bool(re.search(r"```python([\s\S]*?)```", prompt.strip() + '\r\n' + response))
|
|
|
|
| 121 |
with open(f"{base_filename}.md", 'w') as file:
|
| 122 |
try:
|
| 123 |
content = query.strip() + '\r\n' + result
|
| 124 |
+
file.write(content)
|
| 125 |
+
except:
|
| 126 |
+
st.write('.')
|
| 127 |
|
| 128 |
#has_python_code = re.search(r"```python([\s\S]*?)```", prompt.strip() + '\r\n' + response)
|
| 129 |
#has_python_code = bool(re.search(r"```python([\s\S]*?)```", prompt.strip() + '\r\n' + response))
|