armanokka commited on
Commit
b3c6542
1 Parent(s): 8b1898a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=400)
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