Spaces:
Runtime error
Runtime error
updated logo and landing page
Browse files- .DS_Store +0 -0
- app.py +4 -3
- pages/3_answering_questions.py +1 -0
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
st.set_page_config(
|
4 |
-
page_title="Pathfinder
|
5 |
page_icon="π",
|
6 |
)
|
7 |
|
8 |
-
st.write("# Welcome to Pathfinder! π")
|
9 |
st.image('local_files/pathfinder_logo.png',caption="Pathfinder: LLM enabled literature search")
|
10 |
st.sidebar.success("Select a function above.")
|
11 |
st.sidebar.markdown("Current functions include visualizing papers in the arxiv embedding, searching for similar papers to an input paper or prompt phrase, or answering quick questions.")
|
@@ -37,7 +37,8 @@ st.markdown(
|
|
37 |
"""
|
38 |
)
|
39 |
|
40 |
-
st.image('https://drive.google.com/uc?id=1yQQCdlgnFzi-_yOMplGIqEyPKJhIsZpO&export=download')
|
|
|
41 |
|
42 |
st.markdown(
|
43 |
"""
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
st.set_page_config(
|
4 |
+
page_title="Pathfinder",
|
5 |
page_icon="π",
|
6 |
)
|
7 |
|
8 |
+
# st.write("# Welcome to Pathfinder! π")
|
9 |
st.image('local_files/pathfinder_logo.png',caption="Pathfinder: LLM enabled literature search")
|
10 |
st.sidebar.success("Select a function above.")
|
11 |
st.sidebar.markdown("Current functions include visualizing papers in the arxiv embedding, searching for similar papers to an input paper or prompt phrase, or answering quick questions.")
|
|
|
37 |
"""
|
38 |
)
|
39 |
|
40 |
+
# st.image('https://drive.google.com/uc?id=1yQQCdlgnFzi-_yOMplGIqEyPKJhIsZpO&export=download')
|
41 |
+
st.image('local_files/galaxy_worldmap_kiyer-min.png')
|
42 |
|
43 |
st.markdown(
|
44 |
"""
|
pages/3_answering_questions.py
CHANGED
@@ -330,6 +330,7 @@ def run_rag(query, return_n = 10, show_authors = True, show_summary = True):
|
|
330 |
plt.scatter(e2d[0:,0], e2d[0:,1],s=2)
|
331 |
plt.scatter(e2d[simids,0], e2d[simids,1],s=30)
|
332 |
plt.scatter(e2d[abs_indices,0], e2d[abs_indices,1],s=100,color='k',marker='d')
|
|
|
333 |
st.pyplot(fig)
|
334 |
|
335 |
st.markdown('\n #### List of relevant papers:')
|
|
|
330 |
plt.scatter(e2d[0:,0], e2d[0:,1],s=2)
|
331 |
plt.scatter(e2d[simids,0], e2d[simids,1],s=30)
|
332 |
plt.scatter(e2d[abs_indices,0], e2d[abs_indices,1],s=100,color='k',marker='d')
|
333 |
+
plt.title('localization for question: '+query)
|
334 |
st.pyplot(fig)
|
335 |
|
336 |
st.markdown('\n #### List of relevant papers:')
|