Update app.py
Browse files
app.py
CHANGED
@@ -294,7 +294,7 @@ from transformers import MBartForConditionalGeneration, MBart50TokenizerFast
|
|
294 |
#def download_model():
|
295 |
model_name = "facebook/mbart-large-50-many-to-many-mmt"
|
296 |
model = MBartForConditionalGeneration.from_pretrained(model_name)
|
297 |
-
tokenizer =
|
298 |
|
299 |
#model, tokenizer = download_model()
|
300 |
|
|
|
294 |
#def download_model():
|
295 |
model_name = "facebook/mbart-large-50-many-to-many-mmt"
|
296 |
model = MBartForConditionalGeneration.from_pretrained(model_name)
|
297 |
+
tokenizer = MBart50TokenizerFast.from_pretrained(model_name)
|
298 |
|
299 |
#model, tokenizer = download_model()
|
300 |
|