Joshua1808 commited on
Commit
a4b45a1
·
1 Parent(s): aa1a517

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -151,7 +151,7 @@ def tweets_localidad(buscar_localidad):
151
  result.append(etiqueta)
152
  df = pd.DataFrame(result)
153
  df['Prediccion'] = np.where(df['Prediccion'] == 'LABEL_1', 'Sexista', 'No Sexista')
154
- df = df[df["Prediccion"] == 'Sexista']
155
  df = df[df["Probabilidad"] > 0.5]
156
  df = df.sort_values(by='Probabilidad', ascending=False)
157
  muestra = st.table(df.reset_index(drop=True).head(5).style.applymap(color_survived, subset=['Prediccion']))
 
151
  result.append(etiqueta)
152
  df = pd.DataFrame(result)
153
  df['Prediccion'] = np.where(df['Prediccion'] == 'LABEL_1', 'Sexista', 'No Sexista')
154
+ #df = df[df["Prediccion"] == 'Sexista']
155
  df = df[df["Probabilidad"] > 0.5]
156
  df = df.sort_values(by='Probabilidad', ascending=False)
157
  muestra = st.table(df.reset_index(drop=True).head(5).style.applymap(color_survived, subset=['Prediccion']))