Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,3 @@
|
|
1 |
-
# arXiv is a free distribution service and an open-access archive for nearly 2.4 million scholarly articles in fields of..
|
2 |
-
# 1. physics
|
3 |
-
# 2. mathematics
|
4 |
-
# 3. computer science
|
5 |
-
# 4. quantitative biology
|
6 |
-
# 5. quantitative finance
|
7 |
-
# 6. statistics
|
8 |
-
# 7. electrical engineering
|
9 |
-
# 8. systems science
|
10 |
-
# 9. economics
|
11 |
-
|
12 |
-
|
13 |
|
14 |
|
15 |
#import streamlit as st
|
@@ -120,9 +108,12 @@ def search_arxiv(query):
|
|
120 |
llm_model,
|
121 |
api_name="/update_with_rag_md"
|
122 |
)
|
123 |
-
st.markdown(result)
|
|
|
|
|
124 |
|
125 |
-
|
|
|
126 |
if st.button("Save"):
|
127 |
file_name = save_file(result, file_type)
|
128 |
st.success(f"File saved: {file_name}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
|
3 |
#import streamlit as st
|
|
|
108 |
llm_model,
|
109 |
api_name="/update_with_rag_md"
|
110 |
)
|
111 |
+
#st.markdown(result)
|
112 |
+
arxiv_results = st.text_area("ArXiv Results: ", value=result, height=400)
|
113 |
+
st.markdown(result.replace('\n', '\r\n')
|
114 |
|
115 |
+
|
116 |
+
file_type = st.radio("Select Which Type of Memory You Prefer:", ("Semantic", "Episodic"))
|
117 |
if st.button("Save"):
|
118 |
file_name = save_file(result, file_type)
|
119 |
st.success(f"File saved: {file_name}")
|