Joshua1808 commited on
Commit
074b087
·
1 Parent(s): bf03230

Formulario para buscar

Browse files
Files changed (1) hide show
  1. app.py +43 -0
app.py ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.set_page_config(layout="wide")
4
+ st.markdown('<style>body{background-color: Blue;}</style>',unsafe_allow_html=True)
5
+
6
+ colT1,colT2 = st.columns([2,8])
7
+ with colT2:
8
+ # st.title('Analisis de comentarios sexistas en Twitter')
9
+ st.markdown(""" <style> .font {
10
+ font-size:40px ; font-family: 'Cooper Black'; color: #06bf69;}
11
+ </style> """, unsafe_allow_html=True)
12
+ st.markdown('<p class="font">Análisis de comentarios sexistas en Twitter</p>', unsafe_allow_html=True)
13
+
14
+ st.markdown(""" <style> .font1 {
15
+ font-size:28px ; font-family: 'Times New Roman'; color: #8d33ff;}
16
+ </style> """, unsafe_allow_html=True)
17
+
18
+ st.markdown(""" <style> .font2 {
19
+ font-size:16px ; font-family: 'Times New Roman'; color: #3358ff;}
20
+ </style> """, unsafe_allow_html=True)
21
+
22
+
23
+ def run():
24
+ with st.form("my_form"):
25
+ col,buff1, buff2 = st.columns([2,2,1])
26
+ st.write("Escoja una Opción")
27
+ search_words = col.text_input("Introduzca el termino o usuario para analizar y pulse el check correspondiente")
28
+ number_of_tweets = col.number_input('Introduzca número de twweets a analizar. Máximo 50', 0,50,10)
29
+ termino=st.checkbox('Término')
30
+ usuario=st.checkbox('Usuario')
31
+ submit_button = col.form_submit_button(label='Analizar')
32
+ error=False
33
+ if submit_button:
34
+ date_since = "2020-09-14"
35
+ if ( termino == False and usuario == False):
36
+ st.text('Error no se ha seleccionado ningun check')
37
+ error=True
38
+ elif ( termino == True and usuario == True):
39
+ st.text('Error se han seleccionado los dos check')
40
+ error=True
41
+
42
+
43
+ run()