Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def summarize_and_translate(text):
|
|
26 |
translated_text_to_en = translator_ja_to_en(text, max_length=maxlength+1000)[0]['translation_text']
|
27 |
|
28 |
# Summerize from English to English
|
29 |
-
summary_in_en = summarizer(translated_text_to_en, min_length=
|
30 |
|
31 |
# Translate from English to Japanese
|
32 |
summary_in_ja = translator_en_to_ja(summary_in_en, max_length=100)[0]['translation_text']
|
|
|
26 |
translated_text_to_en = translator_ja_to_en(text, max_length=maxlength+1000)[0]['translation_text']
|
27 |
|
28 |
# Summerize from English to English
|
29 |
+
summary_in_en = summarizer(translated_text_to_en, min_length=5, max_length=200)[0]['summary_text']
|
30 |
|
31 |
# Translate from English to Japanese
|
32 |
summary_in_ja = translator_en_to_ja(summary_in_en, max_length=100)[0]['translation_text']
|