Joshua1808 commited on
Commit
3664d0f
·
1 Parent(s): bbde058

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -139,7 +139,7 @@ def analizar_tweets(search_words, number_of_tweets ):
139
  df['Tweets'] = df['Tweets'].str.replace('RT|@', '')
140
  #df['Tweets'] = df['Tweets'].apply(lambda x: re.sub(r'[:;][-o^]?[)\]DpP3]|[(/\\]|[\U0001f600-\U0001f64f]|[\U0001f300-\U0001f5ff]|[\U0001f680-\U0001f6ff]|[\U0001f1e0-\U0001f1ff]','', x))
141
 
142
- st.table(df.reset_index(drop=True).head(20).style.applymap(color_survived, subset=['Sexista']))
143
 
144
  return df
145
 
@@ -194,7 +194,7 @@ def analizar_frase(frase):
194
  text= pd.DataFrame({'Frase': [frase], 'Prediccion':[flat_predictions], 'Probabilidad':[probabilidad_sexista]})
195
  text['Prediccion'] = np.where(text['Prediccion'] == 0 , 'No Sexista', 'Sexista')
196
 
197
- st.table(df.reset_index(drop=True).head(20).style.applymap(color_survived, subset=['Sexista']))
198
 
199
  return text
200
 
 
139
  df['Tweets'] = df['Tweets'].str.replace('RT|@', '')
140
  #df['Tweets'] = df['Tweets'].apply(lambda x: re.sub(r'[:;][-o^]?[)\]DpP3]|[(/\\]|[\U0001f600-\U0001f64f]|[\U0001f300-\U0001f5ff]|[\U0001f680-\U0001f6ff]|[\U0001f1e0-\U0001f1ff]','', x))
141
 
142
+ #st.table(df.reset_index(drop=True).head(20).style.applymap(color_survived, subset=['Sexista']))
143
 
144
  return df
145
 
 
194
  text= pd.DataFrame({'Frase': [frase], 'Prediccion':[flat_predictions], 'Probabilidad':[probabilidad_sexista]})
195
  text['Prediccion'] = np.where(text['Prediccion'] == 0 , 'No Sexista', 'Sexista')
196
 
197
+ #st.table(df.reset_index(drop=True).head(20).style.applymap(color_survived, subset=['Sexista']))
198
 
199
  return text
200