wilmerags commited on
Commit
92e2ae9
1 Parent(s): 9c5d67e

feat: Deduplicate tweets text

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -117,7 +117,8 @@ if tw_user:
117
  if tw_sample > 0:
118
  tweets_response = client.get_users_tweets(usr.data.id, max_results=tw_sample)
119
  tweets_objs += tweets_response.data
120
- tweets_txt = [tweet.text for tweet in tweets_objs]
 
121
  # plot = generate_plot(df, text_column, label_column, sample, dimensionality_reduction_function, model)
122
  plot = generate_plot(tweets_txt, model, tw_user)
123
  st.bokeh_chart(plot)
 
117
  if tw_sample > 0:
118
  tweets_response = client.get_users_tweets(usr.data.id, max_results=tw_sample)
119
  tweets_objs += tweets_response.data
120
+ tweets_txt = [tweet.text for tweet in tweets_objs]
121
+ tweets_txt = list(set(tweets_txt))
122
  # plot = generate_plot(df, text_column, label_column, sample, dimensionality_reduction_function, model)
123
  plot = generate_plot(tweets_txt, model, tw_user)
124
  st.bokeh_chart(plot)