Spaces:
Runtime error
Runtime error
johnnyfivefingers
commited on
Commit
•
f52aa82
1
Parent(s):
c6f8e5b
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def summarize(text):
|
|
20 |
return str(lines)
|
21 |
|
22 |
|
23 |
-
generated_summary = summarizer(text, max_length=
|
24 |
|
25 |
fields = [text, generated_summary]
|
26 |
with open('input.csv','a', newline='') as f:
|
|
|
20 |
return str(lines)
|
21 |
|
22 |
|
23 |
+
generated_summary = summarizer(text, max_length=80, min_length=20)[0]['summary_text']
|
24 |
|
25 |
fields = [text, generated_summary]
|
26 |
with open('input.csv','a', newline='') as f:
|