Spaces:
Runtime error
Runtime error
macrdel
commited on
Commit
•
51906e7
1
Parent(s):
6d21ebb
update pipeline statistics
Browse files- app/src/src.py +1 -1
app/src/src.py
CHANGED
@@ -59,4 +59,4 @@ def pipeline_sentiment(url_video, api_key, model):
|
|
59 |
|
60 |
def pipeline_stats(data):
|
61 |
"""Get statistic of sentiment"""
|
62 |
-
return data['sentiment'].value_counts(normalize=True)
|
|
|
59 |
|
60 |
def pipeline_stats(data):
|
61 |
"""Get statistic of sentiment"""
|
62 |
+
return data['sentiment'].value_counts(normalize=True).mul(100).round(2)
|