Spaces:
Runtime error
Runtime error
Commit
·
c306ca3
1
Parent(s):
000ea05
Update app.py
Browse files
app.py
CHANGED
@@ -156,10 +156,9 @@ def tweets_localidad(buscar_localidad):
|
|
156 |
|
157 |
df = pd.DataFrame(result)
|
158 |
df['Prediccion'] = np.where( df['Prediccion'] == 'LABEL_1', 'Sexista', 'No Sexista')
|
159 |
-
tabla = st.table(df.reset_index(drop=True).head(30).style.applymap(color_survived, subset=['Prediccion']))
|
160 |
#df['Tweets'] = df['Tweets'].str.replace('RT|@', '')
|
161 |
#df_filtrado = df[df["Sexista"] == 'Sexista']
|
162 |
-
|
163 |
tabla = st.table(df.reset_index(drop=True).head(50).style.applymap(color_survived, subset=['Prediccion']))
|
164 |
|
165 |
df_sexista = df[df['Prediccion']=="Sexista"]
|
|
|
156 |
|
157 |
df = pd.DataFrame(result)
|
158 |
df['Prediccion'] = np.where( df['Prediccion'] == 'LABEL_1', 'Sexista', 'No Sexista')
|
159 |
+
#tabla = st.table(df.reset_index(drop=True).head(30).style.applymap(color_survived, subset=['Prediccion']))
|
160 |
#df['Tweets'] = df['Tweets'].str.replace('RT|@', '')
|
161 |
#df_filtrado = df[df["Sexista"] == 'Sexista']
|
|
|
162 |
tabla = st.table(df.reset_index(drop=True).head(50).style.applymap(color_survived, subset=['Prediccion']))
|
163 |
|
164 |
df_sexista = df[df['Prediccion']=="Sexista"]
|