Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -596,6 +596,11 @@ def search_arxiv(query):
|
|
596 |
References = response1[0]
|
597 |
ReferenceLinks = extract_urls(References)
|
598 |
|
|
|
|
|
|
|
|
|
|
|
599 |
RunSecondQuery = True
|
600 |
results=''
|
601 |
if RunSecondQuery:
|
@@ -622,10 +627,6 @@ def search_arxiv(query):
|
|
622 |
st.write(f"Finish time: {end_time}")
|
623 |
st.write(f"Elapsed time: {elapsed_seconds:.2f} seconds")
|
624 |
|
625 |
-
filename = generate_filename(query, "md")
|
626 |
-
create_file(filename, query, results, should_save)
|
627 |
-
st.session_state.messages.append({"role": "assistant", "content": results})
|
628 |
-
|
629 |
#filename = generate_filename(query, "md")
|
630 |
#create_file(filename, query, results, should_save)
|
631 |
|
|
|
596 |
References = response1[0]
|
597 |
ReferenceLinks = extract_urls(References)
|
598 |
|
599 |
+
|
600 |
+
filename = generate_filename(query, "md")
|
601 |
+
create_file(filename, query, References + ReferenceLinks, should_save)
|
602 |
+
st.session_state.messages.append({"role": "assistant", "content": References + ReferenceLinks})
|
603 |
+
|
604 |
RunSecondQuery = True
|
605 |
results=''
|
606 |
if RunSecondQuery:
|
|
|
627 |
st.write(f"Finish time: {end_time}")
|
628 |
st.write(f"Elapsed time: {elapsed_seconds:.2f} seconds")
|
629 |
|
|
|
|
|
|
|
|
|
630 |
#filename = generate_filename(query, "md")
|
631 |
#create_file(filename, query, results, should_save)
|
632 |
|