wzkariampuzha commited on
Commit
801aede
1 Parent(s): 2b7ba7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -119,7 +119,8 @@ if disease_or_gard_id:
119
  NER_pipeline, entity_classes,
120
  extract_diseases, GARD_dict, max_length,
121
  classify_model_vars)
122
- if df:
 
123
  df.replace(to_replace='None', value="None")
124
  st.dataframe(df, height=200)
125
  csv = convert_df(df)
 
119
  NER_pipeline, entity_classes,
120
  extract_diseases, GARD_dict, max_length,
121
  classify_model_vars)
122
+ #IF it returns something, then continue.
123
+ if sankey_data:
124
  df.replace(to_replace='None', value="None")
125
  st.dataframe(df, height=200)
126
  csv = convert_df(df)