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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import nltk
2
  nltk.download('stopwords')
 
3
  import pandas as pd
4
  #classify_abs is a dependency for extract_abs
5
  import classify_abs
@@ -14,8 +15,8 @@ st.subheader("National Center for Advancing Translational Sciences (NIH/NCATS)")
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
 
@@ -28,9 +29,7 @@ extract_diseases = st.sidebar.checkbox("Extract Rare Diseases", value=False)
28
 
29
  with st.spinner('Loading Epidemiology Models and Dependencies...'):
30
  classify_model_vars = classify_abs.init_classify_model()
31
- st.success('Epidemiology Classification Model Loaded!')
32
  NER_pipeline, entity_classes = extract_abs.init_NER_pipeline()
33
- st.success('Epidemiology Extraction Model Loaded!')
34
  GARD_dict, max_length = extract_abs.load_GARD_diseases()
35
  st.success('All Models and Dependencies Loaded!')
36
 
 
1
  import nltk
2
  nltk.download('stopwords')
3
+ nltk.download('punkt')
4
  import pandas as pd
5
  #classify_abs is a dependency for extract_abs
6
  import classify_abs
 
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
 
 
29
 
30
  with st.spinner('Loading Epidemiology Models and Dependencies...'):
31
  classify_model_vars = classify_abs.init_classify_model()
 
32
  NER_pipeline, entity_classes = extract_abs.init_NER_pipeline()
 
33
  GARD_dict, max_length = extract_abs.load_GARD_diseases()
34
  st.success('All Models and Dependencies Loaded!')
35