pydeoxy commited on
Commit
a421068
·
verified ·
1 Parent(s): 33dbafb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ eu_languages = {
39
  def translate(input, src, tgt):
40
  src_lang = eu_languages[src]
41
  tgt_lang = eu_languages[tgt]
42
- output = translator(input, src_lang=src_lang, tgt_lang=tgt_lang)
43
  return output[0]['translation_text']
44
 
45
 
 
39
  def translate(input, src, tgt):
40
  src_lang = eu_languages[src]
41
  tgt_lang = eu_languages[tgt]
42
+ output = translator(input, src_lang=src_lang, tgt_lang=tgt_lang, max_length=400)
43
  return output[0]['translation_text']
44
 
45