Yaron Koresh commited on
Commit
a5eea06
·
verified ·
1 Parent(s): 5c0528c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1279,7 +1279,7 @@ def handle_generation(h,w,d):
1279
  d = " ".join(d_lines)
1280
 
1281
  d = re.sub(r"([ \t]){1,}", " ", d).lower().strip()
1282
- d = d if d == "" else summarize(translate(d),max_words=30)
1283
  d = re.sub(r"([ \t]){1,}", " ", d)
1284
  d = re.sub(r"(\. \.)", ".", d)
1285
 
 
1279
  d = " ".join(d_lines)
1280
 
1281
  d = re.sub(r"([ \t]){1,}", " ", d).lower().strip()
1282
+ d = d if d == "" else summarize(translate(d),max_words=50)
1283
  d = re.sub(r"([ \t]){1,}", " ", d)
1284
  d = re.sub(r"(\. \.)", ".", d)
1285