Spaces:
Build error
Build error
feat: Add warning for empty twitter handler input
Browse files
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 π')
|