Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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 |
-
|
683 |
-
|
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 |
-
|
693 |
-
response = chat_with_model45(result)
|
694 |
all = query + ' ' + response
|
695 |
-
st.write('๐Run
|
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 |
|