Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ else:
|
|
37 |
dev = "cpu"
|
38 |
device = torch.device(dev)
|
39 |
|
40 |
-
mname =
|
41 |
tokenizer = MarianTokenizer.from_pretrained(mname)
|
42 |
model = MarianMTModel.from_pretrained(mname)
|
43 |
model.to(device)
|
|
|
37 |
dev = "cpu"
|
38 |
device = torch.device(dev)
|
39 |
|
40 |
+
mname = "Helsinki-NLP/opus-mt-en-hi"
|
41 |
tokenizer = MarianTokenizer.from_pretrained(mname)
|
42 |
model = MarianMTModel.from_pretrained(mname)
|
43 |
model.to(device)
|