Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ text_gen = pipeline(
|
|
| 13 |
)
|
| 14 |
|
| 15 |
# ⬇️ مدل ترجمه انگلیسی به فارسی
|
| 16 |
-
translation_model_name = "Helsinki-NLP/opus-mt-en-fa"
|
| 17 |
translator_tokenizer = MarianTokenizer.from_pretrained(translation_model_name)
|
| 18 |
translator_model = MarianMTModel.from_pretrained(translation_model_name)
|
| 19 |
|
|
|
|
| 13 |
)
|
| 14 |
|
| 15 |
# ⬇️ مدل ترجمه انگلیسی به فارسی
|
| 16 |
+
translation_model_name = "Helsinki-NLP/opus-mt-en-fa-opus"
|
| 17 |
translator_tokenizer = MarianTokenizer.from_pretrained(translation_model_name)
|
| 18 |
translator_model = MarianMTModel.from_pretrained(translation_model_name)
|
| 19 |
|