Nguyen Thi Dieu Hien commited on
Commit
01030d2
·
unverified ·
1 Parent(s): f8acede

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -66,7 +66,7 @@ class NewsClassifier(nn.Module):
66
  x = self.fc(x)
67
  return x
68
 
69
- @st.cache_data
70
  def load_models(model_type):
71
  models = None
72
  model = None
 
66
  x = self.fc(x)
67
  return x
68
 
69
+ @st.cache
70
  def load_models(model_type):
71
  models = None
72
  model = None