joke
This commit is contained in:
@@ -84,13 +84,6 @@ def populate_database():
|
||||
conn.commit()
|
||||
print(f"✅ Added sample user sentiments for {len(jokes_with_sentiment)} joke entries")
|
||||
|
||||
# Show sentiment distribution
|
||||
cursor.execute('SELECT sentiment_label, COUNT(*) FROM jokes GROUP BY sentiment_label')
|
||||
distribution = cursor.fetchall()
|
||||
print(f'\n📈 AI Sentiment distribution:')
|
||||
for label, cnt in distribution:
|
||||
print(f' {label}: {cnt} jokes')
|
||||
|
||||
# Show user sentiment distribution if the table exists
|
||||
try:
|
||||
cursor.execute('SELECT user_sentiment, COUNT(*) FROM user_sentiments GROUP BY user_sentiment')
|
||||
|
||||
Reference in New Issue
Block a user