robertou2 commited on
Commit
a1d3912
·
1 Parent(s): 4ea61dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -109,6 +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.dataframe(data=df, width=900, height=200)
113
  #st.write(df)
114
  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.table(df)
113
  #st.write(df)
114
  run()