Spaces:
Runtime error
Runtime error
Commit
·
5137030
1
Parent(s):
afeaaa3
Update app.py
Browse files
app.py
CHANGED
@@ -157,7 +157,7 @@ def tweets_localidad(buscar_localidad):
|
|
157 |
result.append(etiqueta)
|
158 |
df = pd.DataFrame(result)
|
159 |
df['Prediccion'] = np.where( df['Prediccion'] == 'LABEL_1', 'Sexista', 'No Sexista')
|
160 |
-
df['Probabilidad'] = df['Probabilidad']
|
161 |
df=df[df["Prediccion"] == 'Sexista']
|
162 |
tabla = st.table(df.reset_index(drop=True).head(50).style.applymap(color_survived, subset=['Prediccion']))
|
163 |
|
|
|
157 |
result.append(etiqueta)
|
158 |
df = pd.DataFrame(result)
|
159 |
df['Prediccion'] = np.where( df['Prediccion'] == 'LABEL_1', 'Sexista', 'No Sexista')
|
160 |
+
df['Probabilidad'] = df['Probabilidad'].apply(lambda x: '{:.2f}%'.format(x))
|
161 |
df=df[df["Prediccion"] == 'Sexista']
|
162 |
tabla = st.table(df.reset_index(drop=True).head(50).style.applymap(color_survived, subset=['Prediccion']))
|
163 |
|