Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,17 +56,19 @@ def preprocess(text):
|
|
56 |
return text
|
57 |
|
58 |
def highlight_survived(s):
|
59 |
-
return ['background-color: red']*len(s) if s.Sexista else ['background-color: green']*len(s)
|
60 |
|
61 |
|
62 |
st.set_page_config(layout="wide")
|
63 |
st.markdown('<style>body{background-color: Blue;}</style>',unsafe_allow_html=True)
|
64 |
|
|
|
|
|
65 |
colT1,colT2 = st.columns([2,8])
|
66 |
with colT2:
|
67 |
#st.title('Analisis de comentarios sexistas en Twitter')
|
68 |
st.markdown(""" <style> .font {
|
69 |
-
font-size:40px ; font-family: 'Cooper Black'; color: #FF9633;
|
70 |
</style> """, unsafe_allow_html=True)
|
71 |
st.markdown('<p class="font">Análisis de comentarios sexistas en Twitter</p>', unsafe_allow_html=True)
|
72 |
|
|
|
56 |
return text
|
57 |
|
58 |
def highlight_survived(s):
|
59 |
+
return ['background-color: red']*len(s) if (s.Sexista == 1) else ['background-color: green']*len(s)
|
60 |
|
61 |
|
62 |
st.set_page_config(layout="wide")
|
63 |
st.markdown('<style>body{background-color: Blue;}</style>',unsafe_allow_html=True)
|
64 |
|
65 |
+
#background-color: Blue;
|
66 |
+
|
67 |
colT1,colT2 = st.columns([2,8])
|
68 |
with colT2:
|
69 |
#st.title('Analisis de comentarios sexistas en Twitter')
|
70 |
st.markdown(""" <style> .font {
|
71 |
+
font-size:40px ; font-family: 'Cooper Black'; color: #FF9633;}
|
72 |
</style> """, unsafe_allow_html=True)
|
73 |
st.markdown('<p class="font">Análisis de comentarios sexistas en Twitter</p>', unsafe_allow_html=True)
|
74 |
|