rya23 commited on
Commit
225b53c
·
verified ·
1 Parent(s): 7253f0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -59,6 +59,7 @@ def analyze_video(video_id):
59
  df = pd.DataFrame(np.array(comments[:200]), columns=["comments"])
60
  print(df.head())
61
  df["sentiment"] = df["comments"].apply(lambda x: sentiment_score(x[:512]))
 
62
 
63
  sentiment_counts = df["sentiment"].value_counts().sort_index()
64
  sentiment_dict = {
 
59
  df = pd.DataFrame(np.array(comments[:200]), columns=["comments"])
60
  print(df.head())
61
  df["sentiment"] = df["comments"].apply(lambda x: sentiment_score(x[:512]))
62
+ print(df.head())
63
 
64
  sentiment_counts = df["sentiment"].value_counts().sort_index()
65
  sentiment_dict = {