Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|