[update]: huggingface hub model path
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ from models import Seq2Seq
|
|
15 |
|
16 |
|
17 |
# Load model
|
18 |
-
model_path = hf_hub_download("msarmi9/multi30k", "models/de-en/model.bin")
|
19 |
model = Seq2Seq(vocab_size=8000, hidden_dim=512, bos_idx=1, eos_idx=2, pad_idx=3, temperature=2)
|
20 |
model.load_state_dict(torch.load(model_path))
|
21 |
model.eval()
|
|
|
15 |
|
16 |
|
17 |
# Load model
|
18 |
+
model_path = hf_hub_download("msarmi9/multi30k", "models/de-en/version_1/model.bin")
|
19 |
model = Seq2Seq(vocab_size=8000, hidden_dim=512, bos_idx=1, eos_idx=2, pad_idx=3, temperature=2)
|
20 |
model.load_state_dict(torch.load(model_path))
|
21 |
model.eval()
|