Di12 commited on
Commit
2a1a3f2
·
1 Parent(s): aa0edd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -137,7 +137,6 @@ pad_idx = vocab['<pad>']
137
 
138
  label_map = {0: 'tiêu cực', 1: 'bình thường', 2: 'tích cực'}
139
 
140
- @st.cache_resource
141
  # Ensure model and its weights moved to correct device
142
  def load_model(path: str):
143
  model = RNN(input_dim, emb_dim, hid_dim, n_layers, bidir, dropout, pad_idx, len(label_map))
 
137
 
138
  label_map = {0: 'tiêu cực', 1: 'bình thường', 2: 'tích cực'}
139
 
 
140
  # Ensure model and its weights moved to correct device
141
  def load_model(path: str):
142
  model = RNN(input_dim, emb_dim, hid_dim, n_layers, bidir, dropout, pad_idx, len(label_map))