awacke1 commited on
Commit
7e3ce11
โ€ข
1 Parent(s): 1a1dc87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- 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))
 
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))