Spaces:
Runtime error
Runtime error
macrdel
commited on
Commit
·
75483f2
1
Parent(s):
ce46035
update pipeline summarize src.py
Browse files- app/src/src.py +1 -1
app/src/src.py
CHANGED
@@ -62,7 +62,7 @@ def pipeline_stats(data):
|
|
62 |
"""Get statistic of sentiment"""
|
63 |
return data['sentiment'].value_counts(normalize=True).mul(100).round(2)
|
64 |
|
65 |
-
def pipeline_summarize(data, headers, url, length=2000, max_length=
|
66 |
"""Get summarization result"""
|
67 |
text = " ".join(data)
|
68 |
result_text = []
|
|
|
62 |
"""Get statistic of sentiment"""
|
63 |
return data['sentiment'].value_counts(normalize=True).mul(100).round(2)
|
64 |
|
65 |
+
def pipeline_summarize(data, headers, url, length=2000, max_length=50):
|
66 |
"""Get summarization result"""
|
67 |
text = " ".join(data)
|
68 |
result_text = []
|