23f2001106
commited on
Commit
·
cbf0666
1
Parent(s):
6429c83
Updated README.md
Browse files
README.md
CHANGED
|
@@ -60,7 +60,9 @@ config = {
|
|
| 60 |
"use_layer_norm": True
|
| 61 |
}
|
| 62 |
model = BERT_FFNN(**config)
|
| 63 |
-
|
|
|
|
|
|
|
| 64 |
model.eval()
|
| 65 |
|
| 66 |
# Example prediction
|
|
|
|
| 60 |
"use_layer_norm": True
|
| 61 |
}
|
| 62 |
model = BERT_FFNN(**config)
|
| 63 |
+
model_path = hf_hub_download(repo_id="NeuralNest05/emo-detector", filename="pytorch_model.bin")
|
| 64 |
+
model.load_state_dict(torch.load(model_path, map_location=DEVICE))
|
| 65 |
+
model.to(DEVICE)
|
| 66 |
model.eval()
|
| 67 |
|
| 68 |
# Example prediction
|