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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -192,7 +192,7 @@ def analizar_frase(frase):
192
 
193
  # Crear un Dataframe
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
 
 
192
 
193
  # Crear un Dataframe
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