Spaces:
Running
Running
wzkariampuzha
commited on
Commit
·
38db4c6
1
Parent(s):
8f768aa
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,11 @@ extract_diseases = st.sidebar.checkbox("Extract Rare Diseases", value=False)
|
|
38 |
|
39 |
@st.cache(suppress_st_warning=True)
|
40 |
def load_models():
|
41 |
-
global classify_model_vars
|
|
|
|
|
|
|
|
|
42 |
classify_model_vars = classify_abs.init_classify_model()
|
43 |
NER_pipeline, entity_classes = extract_abs.init_NER_pipeline()
|
44 |
GARD_dict, max_length = extract_abs.load_GARD_diseases()
|
|
|
38 |
|
39 |
@st.cache(suppress_st_warning=True)
|
40 |
def load_models():
|
41 |
+
global classify_model_vars
|
42 |
+
global NER_pipeline
|
43 |
+
global entity_classes
|
44 |
+
global GARD_dict
|
45 |
+
global max_length
|
46 |
classify_model_vars = classify_abs.init_classify_model()
|
47 |
NER_pipeline, entity_classes = extract_abs.init_NER_pipeline()
|
48 |
GARD_dict, max_length = extract_abs.load_GARD_diseases()
|