Spaces:
Runtime error
Runtime error
Commit
·
69864c1
1
Parent(s):
f95ab68
Update app.py
Browse files
app.py
CHANGED
@@ -152,8 +152,8 @@ def tweets_localidad(buscar_localidad):
|
|
152 |
tabla.append(muestra)
|
153 |
else:
|
154 |
#tabla.append(muestra)
|
155 |
-
|
156 |
-
df.sort_values(by='Prediccion', ascending=False, inplace=True)
|
157 |
df['Prediccion'] = np.where(df['Prediccion'] == 'LABEL_1', 'Sexista', 'No Sexista')
|
158 |
df['Probabilidad'] = df['Probabilidad'].round(3)
|
159 |
#muestra = st.table(df.reset_index(drop=True).head(5).style.applymap(color_survived, subset=['Prediccion']))
|
|
|
152 |
tabla.append(muestra)
|
153 |
else:
|
154 |
#tabla.append(muestra)
|
155 |
+
df.sort_values(by=['Prediccion', 'Probabilidad'], ascending=[False, False], inplace=True)
|
156 |
+
#df.sort_values(by='Prediccion', ascending=False, inplace=True)
|
157 |
df['Prediccion'] = np.where(df['Prediccion'] == 'LABEL_1', 'Sexista', 'No Sexista')
|
158 |
df['Probabilidad'] = df['Probabilidad'].round(3)
|
159 |
#muestra = st.table(df.reset_index(drop=True).head(5).style.applymap(color_survived, subset=['Prediccion']))
|