Spaces:
Sleeping
Sleeping
wzkariampuzha
commited on
Commit
•
e7caceb
1
Parent(s):
47e9ce2
Update app.py
Browse files
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(
|
|
|
17 |
<style>
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
20 |
</style>
|
21 |
-
|
|
|
|
|
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)
|