wzkariampuzha commited on
Commit
8e409e1
1 Parent(s): b94c6e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -14
app.py CHANGED
@@ -79,18 +79,19 @@ st.markdown("Examples of rare diseases include [**Fellman syndrome**](https://ra
79
  st.markdown("A full list of rare diseases tracked by GARD can be found [here](https://rarediseases.info.nih.gov/diseases/browse-by-first-letter).")
80
 
81
  if disease_or_gard_id:
82
- df = extract_abs.streamlit_extraction(disease_or_gard_id, max_results, filtering,
83
- NER_pipeline, entity_classes,
84
- extract_diseases,GARD_dict, max_length,
85
- classify_model_vars)
86
- st.dataframe(df, height=100)
87
- csv = convert_df(df)
88
- st.download_button(
89
- label="Download epidemiology results for "+disease_or_gard_id+" as CSV",
90
- data=df.to_csv().encode('utf-8'),
91
- file_name=disease_or_gard_id+'.csv',
92
- mime='text/csv',
93
- )
94
- #st.dataframe(data=None, width=None, height=None)
95
-
 
96
  # st.code(body, language="python")
 
79
  st.markdown("A full list of rare diseases tracked by GARD can be found [here](https://rarediseases.info.nih.gov/diseases/browse-by-first-letter).")
80
 
81
  if disease_or_gard_id:
82
+ df, sankey_data = extract_abs.streamlit_extraction(disease_or_gard_id, max_results, filtering,
83
+ NER_pipeline, entity_classes,
84
+ extract_diseases,GARD_dict, max_length,
85
+ classify_model_vars)
86
+ st.dataframe(df, height=100)
87
+ csv = convert_df(df)
88
+ st.download_button(
89
+ label="Download epidemiology results for "+disease_or_gard_id+" as CSV",
90
+ data=df.to_csv().encode('utf-8'),
91
+ file_name=disease_or_gard_id+'.csv',
92
+ mime='text/csv',
93
+ )
94
+ #st.dataframe(data=None, width=None, height=None)
95
+ gathered, relevant, epidemiologic = sankey_data
96
+
97
  # st.code(body, language="python")