wzkariampuzha commited on
Commit
e7caceb
1 Parent(s): 47e9ce2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -4
app.py CHANGED
@@ -12,13 +12,23 @@ import streamlit as st
12
  st.title("Epidemiology Extraction Pipeline for Rare Diseases")
13
  st.subheader("National Center for Advancing Translational Sciences (NIH/NCATS)")
14
 
 
 
15
  #### CHANGE SIDEBAR WIDTH ###
16
- st.markdown(f'''
 
17
  <style>
18
- section[data-testid="stSidebar"] .css-ng1t4o {{width: 6rem;}}
19
- section[data-testid="stSidebar"] .css-1d391kg {{width: 6rem;}}
 
 
 
 
 
20
  </style>
21
- ''',unsafe_allow_html=True)
 
 
22
 
23
  #max_results is Maximum number of PubMed ID's to retrieve BEFORE filtering
24
  max_results = st.sidebar.number_input("Maximum number of articles to find in PubMed", min_value=1, max_value=None, value=50)
 
12
  st.title("Epidemiology Extraction Pipeline for Rare Diseases")
13
  st.subheader("National Center for Advancing Translational Sciences (NIH/NCATS)")
14
 
15
+
16
+
17
  #### CHANGE SIDEBAR WIDTH ###
18
+ st.markdown(
19
+ """
20
  <style>
21
+ [data-testid="stSidebar"][aria-expanded="true"] > div:first-child {
22
+ width: 300px;
23
+ }
24
+ [data-testid="stSidebar"][aria-expanded="false"] > div:first-child {
25
+ width: 300px;
26
+ margin-left: -500px;
27
+ }
28
  </style>
29
+ """,
30
+ unsafe_allow_html=True,
31
+ )
32
 
33
  #max_results is Maximum number of PubMed ID's to retrieve BEFORE filtering
34
  max_results = st.sidebar.number_input("Maximum number of articles to find in PubMed", min_value=1, max_value=None, value=50)