Tarun Singh
commited on
Commit
·
a978852
1
Parent(s):
171a9b7
fine tune code 2.3
Browse files
app.py
CHANGED
|
@@ -230,7 +230,8 @@ def index():
|
|
| 230 |
video_id = extract_youtube_video_id(video_url)
|
| 231 |
comment_count = int(request.form.get('comment_count', 10))
|
| 232 |
if video_id:
|
| 233 |
-
comment_to_fetch = comment_count * 10 if comment_count <= 30 else comment_count
|
|
|
|
| 234 |
comments_df = get_comments(video_id, max_results=comment_to_fetch)
|
| 235 |
if not comments_df.empty:
|
| 236 |
sentiment_counts, comments_by_sentiment = get_sentiment(comments_df, comment_count)
|
|
|
|
| 230 |
video_id = extract_youtube_video_id(video_url)
|
| 231 |
comment_count = int(request.form.get('comment_count', 10))
|
| 232 |
if video_id:
|
| 233 |
+
# comment_to_fetch = comment_count * 10 if comment_count <= 30 else comment_count
|
| 234 |
+
comment_to_fetch = comment_count * 10
|
| 235 |
comments_df = get_comments(video_id, max_results=comment_to_fetch)
|
| 236 |
if not comments_df.empty:
|
| 237 |
sentiment_counts, comments_by_sentiment = get_sentiment(comments_df, comment_count)
|