Spaces:
Runtime error
Runtime error
Commit
·
dfcadc4
1
Parent(s):
33f003a
Update app.py
Browse files
app.py
CHANGED
@@ -223,8 +223,8 @@ def analizar_frase(frase):
|
|
223 |
df['Prediccion'] = np.where( df['Prediccion'] == 'LABEL_1', 'Sexista', 'No Sexista')
|
224 |
# muestra el DataFrame
|
225 |
tabla = st.table(df.reset_index(drop=True).head(1).style.applymap(color_survived, subset=['Prediccion']))
|
226 |
-
|
227 |
-
|
228 |
|
229 |
return tabla
|
230 |
|
|
|
223 |
df['Prediccion'] = np.where( df['Prediccion'] == 'LABEL_1', 'Sexista', 'No Sexista')
|
224 |
# muestra el DataFrame
|
225 |
tabla = st.table(df.reset_index(drop=True).head(1).style.applymap(color_survived, subset=['Prediccion']))
|
226 |
+
else:
|
227 |
+
tabla = st.text("Solo Frase en español")
|
228 |
|
229 |
return tabla
|
230 |
|