wzkariampuzha commited on
Commit
7780086
1 Parent(s): 4a37eb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -62,7 +62,13 @@ def load_models():
62
  GARD_dict, max_length = extract_abs.load_GARD_diseases()
63
  return classify_tokenizer, classify_model, NER_pipeline, entity_classes, GARD_dict, max_length
64
 
65
- @st.experimental_memo
 
 
 
 
 
 
66
  def epi_sankey(sankey_data):
67
  gathered, relevant, epidemiologic = sankey_data
68
 
 
62
  GARD_dict, max_length = extract_abs.load_GARD_diseases()
63
  return classify_tokenizer, classify_model, NER_pipeline, entity_classes, GARD_dict, max_length
64
 
65
+ @st.cache
66
+ def convert_df(df):
67
+ # IMPORTANT: Cache the conversion to prevent computation on every rerun
68
+ return df.to_csv().encode('utf-8')
69
+
70
+ #@st.experimental_memo
71
+ @st.cache(allow_output_mutation=True)
72
  def epi_sankey(sankey_data):
73
  gathered, relevant, epidemiologic = sankey_data
74