Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
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=
|
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 |
|