Update app.py
Browse files
app.py
CHANGED
|
@@ -136,7 +136,7 @@ def google(name):
|
|
| 136 |
temp = ""
|
| 137 |
for r in text.split("\n\n"):
|
| 138 |
temp = temp+r.split("...")[0]
|
| 139 |
-
f_result = sumy({"inputs":temp,"parameters": {"do_sample": False,"max_length":
|
| 140 |
return f_result[0]['summary_text']
|
| 141 |
else:
|
| 142 |
n=1
|
|
|
|
| 136 |
temp = ""
|
| 137 |
for r in text.split("\n\n"):
|
| 138 |
temp = temp+r.split("...")[0]
|
| 139 |
+
f_result = sumy({"inputs":temp,"parameters": {"do_sample": False,"max_length":300}})
|
| 140 |
return f_result[0]['summary_text']
|
| 141 |
else:
|
| 142 |
n=1
|