chuanenlin commited on
Commit
3682312
1 Parent(s): 037ec94

Update foodnet.py

Browse files
Files changed (1) hide show
  1. foodnet.py +2 -2
foodnet.py CHANGED
@@ -189,7 +189,7 @@ def train_model(data):
189
 
190
  return model
191
 
192
- @st.cache_resource(allow_output_mutation=True, suppress_st_warning=True)
193
  def load_model(filename):
194
  '''
195
  Load the FastText Model
@@ -207,7 +207,7 @@ def load_model(filename):
207
 
208
  return model, yum
209
 
210
- @st.cache_resource(allow_output_mutation=True, suppress_st_warning=True)
211
  def load_data(filename='data/all_recipes_ingredients_lemma.pkl'):
212
  '''
213
  Load data
189
 
190
  return model
191
 
192
+ @st.cache_resource
193
  def load_model(filename):
194
  '''
195
  Load the FastText Model
207
 
208
  return model, yum
209
 
210
+ @st.cache_resource
211
  def load_data(filename='data/all_recipes_ingredients_lemma.pkl'):
212
  '''
213
  Load data