Sami2000 commited on
Commit
c05c2e5
·
verified ·
1 Parent(s): bf5f218

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ if st.button("Search"):
68
  reddit_data = search_reddit(keywords, subreddit=subreddit if subreddit else None)
69
 
70
  progress.progress(80, text="Analyzing sentiment...")
71
- sentiment_results = analyze_sentiment([item["body"] for item in reddit_data])
72
 
73
  # --- Display results ---
74
  st.success(f"Found {len(reddit_data)} Reddit posts. Sentiment analysis complete.")
 
68
  reddit_data = search_reddit(keywords, subreddit=subreddit if subreddit else None)
69
 
70
  progress.progress(80, text="Analyzing sentiment...")
71
+ sentiment_results = analyze_sentiment(reddit_data)
72
 
73
  # --- Display results ---
74
  st.success(f"Found {len(reddit_data)} Reddit posts. Sentiment analysis complete.")