Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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))
|