wilmerags commited on
Commit
5e899e5
β€’
1 Parent(s): dbebcc0

feat: Add warning for empty twitter handler input

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -124,4 +124,6 @@ if go_btn and tw_user != '':
124
  tweets_txt = list(set(tweets_txt))
125
  # plot = generate_plot(df, text_column, label_column, sample, dimensionality_reduction_function, model)
126
  plot = generate_plot(tweets_txt, model, tw_user)
127
- st.bokeh_chart(plot)
 
 
 
124
  tweets_txt = list(set(tweets_txt))
125
  # plot = generate_plot(df, text_column, label_column, sample, dimensionality_reduction_function, model)
126
  plot = generate_plot(tweets_txt, model, tw_user)
127
+ st.bokeh_chart(plot)
128
+ elif go_btn and tw_user == '':
129
+ st.warning('Twitter handler field is empty πŸ™„')