Update app.py
Browse files
app.py
CHANGED
@@ -91,13 +91,9 @@ def search_arxiv(query):
|
|
91 |
client = Client("awacke1/Arxiv-Paper-Search-And-QA-RAG-Pattern")
|
92 |
search_query = query
|
93 |
#top_n_results = st.slider(key='topnresults', label="Top n results as context", min_value=4, max_value=100, value=100)
|
94 |
-
search_source = st.sidebar.selectbox("Search Source", ["Semantic Search - up to 10 Mar 2024", "Arxiv Search - Latest - (EXPERIMENTAL)"])
|
95 |
-
llm_model = st.sidebar.selectbox("LLM Model", ["mistralai/Mixtral-8x7B-Instruct-v0.1", "mistralai/Mistral-7B-Instruct-v0.2", "google/gemma-7b-it", "None"])
|
96 |
-
|
97 |
-
|
98 |
st.sidebar.markdown('### ๐ ' + query)
|
99 |
-
|
100 |
-
|
101 |
result = client.predict(
|
102 |
search_query,
|
103 |
100,
|
@@ -106,7 +102,6 @@ def search_arxiv(query):
|
|
106 |
api_name="/update_with_rag_md"
|
107 |
)
|
108 |
|
109 |
-
|
110 |
st.markdown(result)
|
111 |
arxiv_results = st.text_area("ArXiv Results: ", value=result, height=700)
|
112 |
result = str(result) # cast as string for these - check content length and format if encoding changes..
|
|
|
91 |
client = Client("awacke1/Arxiv-Paper-Search-And-QA-RAG-Pattern")
|
92 |
search_query = query
|
93 |
#top_n_results = st.slider(key='topnresults', label="Top n results as context", min_value=4, max_value=100, value=100)
|
94 |
+
search_source = st.sidebar.selectbox(key='searchsource', label="Search Source", ["Semantic Search - up to 10 Mar 2024", "Arxiv Search - Latest - (EXPERIMENTAL)"])
|
95 |
+
llm_model = st.sidebar.selectbox(key='llmmodel', label="LLM Model", ["mistralai/Mixtral-8x7B-Instruct-v0.1", "mistralai/Mistral-7B-Instruct-v0.2", "google/gemma-7b-it", "None"])
|
|
|
|
|
96 |
st.sidebar.markdown('### ๐ ' + query)
|
|
|
|
|
97 |
result = client.predict(
|
98 |
search_query,
|
99 |
100,
|
|
|
102 |
api_name="/update_with_rag_md"
|
103 |
)
|
104 |
|
|
|
105 |
st.markdown(result)
|
106 |
arxiv_results = st.text_area("ArXiv Results: ", value=result, height=700)
|
107 |
result = str(result) # cast as string for these - check content length and format if encoding changes..
|