Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def translation(source, target, text):
|
|
41 |
tokenizer = model_dict[model_name + '_tokenizer']
|
42 |
|
43 |
translator = pipeline('translation', model=model, tokenizer=tokenizer, src_lang=source, tgt_lang=target)
|
44 |
-
output = translator(text, max_length=
|
45 |
|
46 |
end_time = time.time()
|
47 |
|
|
|
41 |
tokenizer = model_dict[model_name + '_tokenizer']
|
42 |
|
43 |
translator = pipeline('translation', model=model, tokenizer=tokenizer, src_lang=source, tgt_lang=target)
|
44 |
+
output = translator(text, max_length=4098)
|
45 |
|
46 |
end_time = time.time()
|
47 |
|