Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import arxiv
|
|
3 |
#import pdfminer
|
4 |
#from pdfminer.high_level import extract_text, extract_pages
|
5 |
#from pdfminer.layout import LTTextContainer
|
6 |
-
|
7 |
#from get_paper import get_paper
|
8 |
#from get_pages import get_pages
|
9 |
#from tts import tts
|
@@ -11,12 +11,18 @@ import arxiv
|
|
11 |
st.title("ArXiV Audio")
|
12 |
|
13 |
with st.form(key = "search_form"):
|
14 |
-
col1, col2, col3 = st.
|
15 |
with col1:
|
16 |
query = st.text_input("Search Paper")
|
17 |
with col2:
|
18 |
sort_by = st.selectbox(label = "Sort By", options=('Relevance', 'Last Updated Date','Submitted Date'))
|
19 |
with col3:
|
20 |
order_by = st.selectbox(label = "Order By", options=('Ascending', 'Descending'))
|
21 |
-
submit = st.form_submit_button(label = "
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
|
|
3 |
#import pdfminer
|
4 |
#from pdfminer.high_level import extract_text, extract_pages
|
5 |
#from pdfminer.layout import LTTextContainer
|
6 |
+
from search import search
|
7 |
#from get_paper import get_paper
|
8 |
#from get_pages import get_pages
|
9 |
#from tts import tts
|
|
|
11 |
st.title("ArXiV Audio")
|
12 |
|
13 |
with st.form(key = "search_form"):
|
14 |
+
col1, col2, col3 = st.columns(3)
|
15 |
with col1:
|
16 |
query = st.text_input("Search Paper")
|
17 |
with col2:
|
18 |
sort_by = st.selectbox(label = "Sort By", options=('Relevance', 'Last Updated Date','Submitted Date'))
|
19 |
with col3:
|
20 |
order_by = st.selectbox(label = "Order By", options=('Ascending', 'Descending'))
|
21 |
+
submit = st.form_submit_button(label = "Search")
|
22 |
+
|
23 |
+
lst = search(query=query, sort_by=sort_by, sort_order=order_by)
|
24 |
+
|
25 |
+
with st.form(key = "paper_form"):
|
26 |
+
paper = st.selectbox(label = "Papers", options=lst)
|
27 |
+
submit_paper = st.form_submit_button(label = "Fetch Paper")
|
28 |
|