macrdel commited on
Commit
51906e7
1 Parent(s): 6d21ebb

update pipeline statistics

Browse files
Files changed (1) hide show
  1. 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) * 100
 
59
 
60
  def pipeline_stats(data):
61
  """Get statistic of sentiment"""
62
+ return data['sentiment'].value_counts(normalize=True).mul(100).round(2)