robertou2 commited on
Commit
8727080
1 Parent(s): 798ec52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -109,5 +109,6 @@ def run():
109
  flat_predictions = np.argmax(flat_predictions, axis=1).flatten()#p = [i for i in classifier(tweet_list)]
110
  df = pd.DataFrame(list(zip(tweet_list, flat_predictions)),columns =['Latest'+str(number_of_tweets)+'Tweets'+' on '+search_words, 'Sexista'])
111
  df['Sexista']= np.where(df['Sexista']== 0, 'No Sexista', 'Sexista')
112
- st.write(df)
 
113
  run()
 
109
  flat_predictions = np.argmax(flat_predictions, axis=1).flatten()#p = [i for i in classifier(tweet_list)]
110
  df = pd.DataFrame(list(zip(tweet_list, flat_predictions)),columns =['Latest'+str(number_of_tweets)+'Tweets'+' on '+search_words, 'Sexista'])
111
  df['Sexista']= np.where(df['Sexista']== 0, 'No Sexista', 'Sexista')
112
+ st.dataframe(data=df, width=1024, height=800)
113
+ #st.write(df)
114
  run()