Spaces:
Runtime error
Runtime error
Commit
路
18a568c
1
Parent(s):
90917fe
Update app.py
Browse files
app.py
CHANGED
@@ -208,35 +208,14 @@ def analizar_frase(frase):
|
|
208 |
return tabla
|
209 |
|
210 |
def run():
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
localidad = st.checkbox('Localidad', key="localidad_checkbox")
|
221 |
-
submit_button = col3.form_submit_button(label='Analizar')
|
222 |
-
error = False
|
223 |
-
|
224 |
-
if submit_button:
|
225 |
-
# Condici贸n para el caso de que esten dos check seleccionados
|
226 |
-
if ( termino == False and usuario == False and localidad == False):
|
227 |
-
st.text('Error no se ha seleccionado ningun check')
|
228 |
-
error=True
|
229 |
-
elif ( termino == True and usuario == True and localidad == True):
|
230 |
-
st.text('Error se han seleccionado varios check')
|
231 |
-
error=True
|
232 |
-
|
233 |
-
with colT1:
|
234 |
-
if (error == False):
|
235 |
-
if (termino):
|
236 |
-
analizar_frase(search_words)
|
237 |
-
elif (usuario):
|
238 |
-
tweets_usuario(search_words,number_of_tweets)
|
239 |
-
elif (localidad):
|
240 |
-
tweets_localidad(search_words)
|
241 |
|
242 |
run()
|
|
|
208 |
return tabla
|
209 |
|
210 |
def run():
|
211 |
+
with st.beta_container():
|
212 |
+
col1, col2 = st.beta_columns([2, 3])
|
213 |
+
col1.write("Contenido de la primera columna")
|
214 |
+
col2.write("Contenido de la segunda columna")
|
215 |
+
|
216 |
+
with st.beta_container():
|
217 |
+
col3, col4 = st.beta_columns([1, 2])
|
218 |
+
col3.write("Contenido de la tercera columna")
|
219 |
+
col4.write("Contenido de la cuarta columna")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
|
221 |
run()
|