Spaces:
Runtime error
Runtime error
Commit
·
bbde058
1
Parent(s):
b4a66f8
Update app.py
Browse files
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['
|
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 |
|