awacke1 commited on
Commit
520d628
โ€ข
1 Parent(s): 0cb60fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -8
app.py CHANGED
@@ -676,24 +676,33 @@ Example: letter_queue = deque(random.sample(string.ascii_uppercase, 10))"""
676
  all = query + ' ' + response
677
  st.write('๐Ÿ”Run 1 is Complete.')
678
 
679
-
680
  client = Client("awacke1/Arxiv-Paper-Search-And-QA-RAG-Pattern")
681
  result = client.predict(
682
- "What is Semantic and Episodic memory?", # str in 'Search' Textbox component
683
- 4, # float (numeric value between 4 and 10) in 'Top n results as context' Slider component
684
  "Semantic Search - up to 10 Mar 2024", # Literal['Semantic Search - up to 10 Mar 2024', 'Arxiv Search - Latest - (EXPERIMENTAL)'] in 'Search Source' Dropdown component
685
  "mistralai/Mixtral-8x7B-Instruct-v0.1", # Literal['mistralai/Mixtral-8x7B-Instruct-v0.1', 'mistralai/Mistral-7B-Instruct-v0.2', 'google/gemma-7b-it', 'None'] in 'LLM Model' Dropdown component
686
  api_name="/update_with_rag_md"
687
  )
688
  st.markdown(result)
689
 
 
 
 
 
 
 
 
 
 
690
 
691
-
692
- # ๐Ÿ”Run 1+N - plain query
693
- response = chat_with_model45(result) # experimental 45 - - - - - - - - - - - - -<><><><><>
694
  all = query + ' ' + response
695
- st.write('๐Ÿ”Run 1+N is Complete.')
696
-
697
 
698
 
699
 
 
676
  all = query + ' ' + response
677
  st.write('๐Ÿ”Run 1 is Complete.')
678
 
679
+ # ArXiv searcher ~-<>-~
680
  client = Client("awacke1/Arxiv-Paper-Search-And-QA-RAG-Pattern")
681
  result = client.predict(
682
+ query,
683
+ 100,
684
  "Semantic Search - up to 10 Mar 2024", # Literal['Semantic Search - up to 10 Mar 2024', 'Arxiv Search - Latest - (EXPERIMENTAL)'] in 'Search Source' Dropdown component
685
  "mistralai/Mixtral-8x7B-Instruct-v0.1", # Literal['mistralai/Mixtral-8x7B-Instruct-v0.1', 'mistralai/Mistral-7B-Instruct-v0.2', 'google/gemma-7b-it', 'None'] in 'LLM Model' Dropdown component
686
  api_name="/update_with_rag_md"
687
  )
688
  st.markdown(result)
689
 
690
+ # experimental 45 - - - - - - - - - - - - -<><><><><>
691
+ if result:
692
+ session_state["search_queries"].append(query)
693
+ #if query:
694
+ # search_arxiv(query)
695
+ # search_glossary(query)
696
+ #st.markdown(' ')
697
+
698
+ st.write('๐Ÿ”Run 2 - Long Form Summary')
699
 
700
+ # ๐Ÿ”Run PaperSummarizer - plain query
701
+ PaperSummarizer = ' Create a diagram graphical representation of this: Summarize this paper set with short emoji outlines and preserve links, shortening it significantly. Create emoji filled short summaries per paper structured as markdown tables and outlines and show full markdown code listing. '
702
+ response = chat_with_model45(PaperSummarizer + result)
703
  all = query + ' ' + response
704
+ st.write('๐Ÿ”Run Paper Summarizer is Complete.')
705
+ # experimental 45 - - - - - - - - - - - - -<><><><><>
706
 
707
 
708