Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,7 @@ from PIL import Image
|
|
6 |
|
7 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
8 |
|
9 |
-
|
10 |
-
model_name = f"persiannlp/mt5-{model_size}-parsinlu-translation_en_fa"
|
11 |
translation_tokenizer = MT5Tokenizer.from_pretrained(model_name)
|
12 |
translation_model = MT5ForConditionalGeneration.from_pretrained(model_name)
|
13 |
|
|
|
6 |
|
7 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
8 |
|
9 |
+
model_name = "SeyedAli/English-to-Persian-Translation-mT5-V1"
|
|
|
10 |
translation_tokenizer = MT5Tokenizer.from_pretrained(model_name)
|
11 |
translation_model = MT5ForConditionalGeneration.from_pretrained(model_name)
|
12 |
|