import streamlit as st
from .utils import PACKAGE_ROOT
def render_sidebar():
path = f'{PACKAGE_ROOT}/static/tum.png'
print(path)
sidebar_markdown = f'''
Literature Research Tool
v1.0.0
---
## 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 number of papers to display')
number_papers=st.sidebar.slider('number', 0, 500, 25, 10)
return platforms, number_papers