wzkariampuzha commited on
Commit
6d2e57c
1 Parent(s): 847adc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -11,6 +11,14 @@ import streamlit as st
11
  st.title("Epidemiology Extraction Pipeline for Rare Diseases")
12
  st.subheader("National Center for Advancing Translational Sciences (NIH/NCATS)")
13
 
 
 
 
 
 
 
 
 
14
  #max_results is Maximum number of PubMed ID's to retrieve BEFORE filtering
15
  max_results = st.sidebar.number_input("Maximum number of articles to find in PubMed", min_value=1, max_value=None, value=50)
16
 
@@ -26,9 +34,9 @@ with st.spinner('Loading Epidemiology Models and Dependencies...'):
26
  GARD_dict, max_length = extract_abs.load_GARD_diseases()
27
  st.success('All Models and Dependencies Loaded!')
28
 
29
- GARD_Disease_Id = st.text_input("Input a rare disease term or GARD ID.", value="Fellman syndrome")
30
 
31
- if text:
32
  df = extract_abs.search_term_extraction(disease_or_gard_id, max_results, filtering,
33
  NER_pipeline, entity_classes,
34
  extract_diseases,GARD_dict, max_length,
 
11
  st.title("Epidemiology Extraction Pipeline for Rare Diseases")
12
  st.subheader("National Center for Advancing Translational Sciences (NIH/NCATS)")
13
 
14
+ #### CHANGE SIDEBAR WIDTH ###
15
+ st.markdown(f'''
16
+ <style>
17
+ section[data-testid="stSidebar"] .css-ng1t4o {{width: 10rem;}}
18
+ section[data-testid="stSidebar"] .css-1d391kg {{width: 10rem;}}
19
+ </style>
20
+ ''',unsafe_allow_html=True)
21
+
22
  #max_results is Maximum number of PubMed ID's to retrieve BEFORE filtering
23
  max_results = st.sidebar.number_input("Maximum number of articles to find in PubMed", min_value=1, max_value=None, value=50)
24
 
 
34
  GARD_dict, max_length = extract_abs.load_GARD_diseases()
35
  st.success('All Models and Dependencies Loaded!')
36
 
37
+ disease_or_gard_id = st.text_input("Input a rare disease term or GARD ID.", value="Fellman syndrome")
38
 
39
+ if disease_or_gard_id:
40
  df = extract_abs.search_term_extraction(disease_or_gard_id, max_results, filtering,
41
  NER_pipeline, entity_classes,
42
  extract_diseases,GARD_dict, max_length,