import streamlit as st import datetime # from .utils import PACKAGE_ROOT def render_sidebar(): sidebar_markdown = f'''
TUM

Literature Research Tool

v1.0.0
email
--- ## 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