Spaces:
Runtime error
Runtime error
File size: 1,917 Bytes
9420338 68c1b6b 9420338 68c1b6b 469542a 9420338 469542a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
import streamlit as st
import datetime
# from .utils import PACKAGE_ROOT
def render_sidebar():
sidebar_markdown = f'''
<center>
<img src="https://raw.githubusercontent.com/leoxiang66/streamlit-tutorial/IDP/widgets/static/tum.png" alt="TUM" width="150"/>
<h1>
Literature Research Tool
</h1>
<code>
v1.0.0
</code>
</center>
<center>
<a href="https://github.com/Mondkuchen/idp_LiteratureResearch_Tool"><img src = "https://cdn-icons-png.flaticon.com/512/733/733609.png" width="23"></img></a> <a href="mailto:[email protected]"><img src="https://cdn-icons-png.flaticon.com/512/646/646094.png" alt="email" width = "27" ></a>
</center>
---
## Choose the Paper Search Platforms'''
st.sidebar.markdown(sidebar_markdown,unsafe_allow_html=True)
# elvsier = st.sidebar.checkbox('Elvsier',value=True)
# IEEE = st.sidebar.checkbox('IEEE',value=False)
# google = st.sidebar.checkbox('Google Scholar')
platforms = st.sidebar.multiselect('Platforms',options=
[
# 'Elvsier',
'IEEE',
# 'Google Scholar',
'Arxiv',
'PaperWithCode'
], default=[
# 'Elvsier',
'IEEE',
# 'Google Scholar',
'Arxiv',
'PaperWithCode'
])
st.sidebar.markdown('## Choose the max number of papers to search')
number_papers=st.sidebar.slider('number', 50, 200, 50, 10)
st.sidebar.markdown('## Choose the start year of publication')
this_year = datetime.date.today().year
start_year = st.sidebar.slider('year start:', 2000, this_year, 2010, 1)
st.sidebar.markdown('## Choose the end year of publication')
end_year = st.sidebar.slider('year end:', 2000, this_year, this_year, 1)
st.sidebar.markdown('## Choose the number of clusters')
k = st.sidebar.slider('number',1,10,5)
return platforms, number_papers, start_year, end_year, k |