Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -115,8 +115,8 @@ class RNN(nn.Module):
|
|
| 115 |
h = h[-1]
|
| 116 |
return self.fc(self.dropout(h))
|
| 117 |
|
| 118 |
-
model_path = hf_hub_download(repo_id="Di12/sentiment_analysis", filename="model.pt", repo_type="
|
| 119 |
-
embedding_path = hf_hub_download(repo_id="Di12/sentiment_analysis", filename="vi_word2vec_reduced.txt", repo_type="
|
| 120 |
|
| 121 |
# Load pretrained embeddings and build vocab
|
| 122 |
word_embedding = vocab.Vectors(
|
|
|
|
| 115 |
h = h[-1]
|
| 116 |
return self.fc(self.dropout(h))
|
| 117 |
|
| 118 |
+
model_path = hf_hub_download(repo_id="Di12/sentiment_analysis", filename="model.pt", repo_type="space")
|
| 119 |
+
embedding_path = hf_hub_download(repo_id="Di12/sentiment_analysis", filename="vi_word2vec_reduced.txt", repo_type="space")
|
| 120 |
|
| 121 |
# Load pretrained embeddings and build vocab
|
| 122 |
word_embedding = vocab.Vectors(
|