Update app.py
Browse files
app.py
CHANGED
@@ -289,9 +289,9 @@ from transformers import MBartForConditionalGeneration, MBart50Tokenizer
|
|
289 |
|
290 |
|
291 |
################################
|
292 |
-
model_name = "facebook/mbart-large-50-many-to-many-mmt"
|
293 |
-
model = MBartForConditionalGeneration.from_pretrained(model_name)
|
294 |
-
tokenizer = MBart50Tokenizer.from_pretrained(model_name)
|
295 |
|
296 |
def get_response(input_text):
|
297 |
#model_inputs = tokenizer(input_text, return_tensors="pt")
|
|
|
289 |
|
290 |
|
291 |
################################
|
292 |
+
#model_name = "facebook/mbart-large-50-many-to-many-mmt"
|
293 |
+
#model = MBartForConditionalGeneration.from_pretrained(model_name)
|
294 |
+
#tokenizer = MBart50Tokenizer.from_pretrained(model_name)
|
295 |
|
296 |
def get_response(input_text):
|
297 |
#model_inputs = tokenizer(input_text, return_tensors="pt")
|