Spaces:
Sleeping
Sleeping
wzkariampuzha
commited on
Commit
•
33894f1
1
Parent(s):
28275dd
Update epi_pipeline.py
Browse files- epi_pipeline.py +2 -3
epi_pipeline.py
CHANGED
@@ -823,8 +823,7 @@ def streamlit_extraction(search_term:Union[int,str], maxResults:int, filtering:s
|
|
823 |
epi_ner:NER_Pipeline, #for biobert extraction
|
824 |
GARD_Search:GARD_Search, extract_diseases:bool, #for disease extraction
|
825 |
epi_classify:Classify_Pipeline) -> pd.DataFrame: #for classification
|
826 |
-
|
827 |
-
|
828 |
#Format of Output
|
829 |
ordered_labels = order_labels(epi_ner.labels)
|
830 |
if extract_diseases:
|
@@ -874,7 +873,7 @@ def streamlit_extraction(search_term:Union[int,str], maxResults:int, filtering:s
|
|
874 |
sankey_data = (found, relevant, epidemiologic)
|
875 |
#Export the name and GARD ID to the ap for better integration on page.
|
876 |
name = search_term_list[-1].capitalize()
|
877 |
-
name_gardID = (name, GARD_dict[search_term_list[-1]])
|
878 |
|
879 |
return results.sort_values('PROB_OF_EPI', ascending=False), sankey_data, name_gardID
|
880 |
|
|
|
823 |
epi_ner:NER_Pipeline, #for biobert extraction
|
824 |
GARD_Search:GARD_Search, extract_diseases:bool, #for disease extraction
|
825 |
epi_classify:Classify_Pipeline) -> pd.DataFrame: #for classification
|
826 |
+
|
|
|
827 |
#Format of Output
|
828 |
ordered_labels = order_labels(epi_ner.labels)
|
829 |
if extract_diseases:
|
|
|
873 |
sankey_data = (found, relevant, epidemiologic)
|
874 |
#Export the name and GARD ID to the ap for better integration on page.
|
875 |
name = search_term_list[-1].capitalize()
|
876 |
+
name_gardID = (name, GARD_Search.GARD_dict[search_term_list[-1]])
|
877 |
|
878 |
return results.sort_values('PROB_OF_EPI', ascending=False), sankey_data, name_gardID
|
879 |
|