xinfyxinfy commited on
Commit
3fb9e3a
·
1 Parent(s): ca3430a

Update app.py

Browse files

removed cache_data because huggingface still runs old streamlit

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,7 +75,7 @@ elif task == "TCR\u03B2-Peptide":
75
 
76
 
77
  ##################### ML predict function
78
- @st.cache_data
79
  def predict_on_batch_output(dataset,shorttask,group):
80
 
81
  if dataset == 'MCPAS':
@@ -186,7 +186,7 @@ def predict_on_batch_output(dataset,shorttask,group):
186
  val = np.squeeze(output)
187
  return val
188
 
189
- @st.cache_data
190
  def convert_df(df):
191
  # IMPORTANT: Cache the conversion to prevent computation on every rerun
192
  return df.to_csv().encode('utf-8')
 
75
 
76
 
77
  ##################### ML predict function
78
+ # @st.cache_data
79
  def predict_on_batch_output(dataset,shorttask,group):
80
 
81
  if dataset == 'MCPAS':
 
186
  val = np.squeeze(output)
187
  return val
188
 
189
+ # @st.cache_data
190
  def convert_df(df):
191
  # IMPORTANT: Cache the conversion to prevent computation on every rerun
192
  return df.to_csv().encode('utf-8')