hayanaka commited on
Commit
6d9ee68
1 Parent(s): 4cd0c9c

Update app.py

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