awacke1 commited on
Commit
5695b0b
1 Parent(s): 685c41c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -621,8 +621,14 @@ def search_arxiv(query):
621
  st.write(f"Start time: {start_time}")
622
  st.write(f"Finish time: {end_time}")
623
  st.write(f"Elapsed time: {elapsed_seconds:.2f} seconds")
624
- filename = generate_filename(query, "md")
625
- create_file(filename, query, results, should_save)
 
 
 
 
 
 
626
  return results
627
 
628
  def download_pdfs_and_generate_html(urls):
 
621
  st.write(f"Start time: {start_time}")
622
  st.write(f"Finish time: {end_time}")
623
  st.write(f"Elapsed time: {elapsed_seconds:.2f} seconds")
624
+
625
+ filename = generate_filename(text_input, "md")
626
+ create_file(filename, text_input, 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
+
632
  return results
633
 
634
  def download_pdfs_and_generate_html(urls):