Spaces:
Runtime error
Runtime error
Commit
路
366279c
1
Parent(s):
a0c7133
Update app.py
Browse files
app.py
CHANGED
@@ -203,8 +203,8 @@ def analizar_frase(frase):
|
|
203 |
return tabla
|
204 |
|
205 |
def run():
|
206 |
-
col1, col2 = st.columns(2)
|
207 |
-
with
|
208 |
search_words = st.text_input("Introduzca la frase, el usuario o localidad para analizar y pulse el check correspondiente")
|
209 |
number_of_tweets = st.number_input('Introduzca n煤mero de tweets a analizar del usuario M谩ximo 50', 0,50,0)
|
210 |
st.write("Escoja una Opci贸n")
|
@@ -225,12 +225,10 @@ def run():
|
|
225 |
|
226 |
if (error == False):
|
227 |
if (termino):
|
228 |
-
|
229 |
-
analizar_frase(search_words)
|
230 |
elif (usuario):
|
231 |
-
|
232 |
-
tweets_usuario(search_words,number_of_tweets)
|
233 |
elif (localidad):
|
234 |
-
|
235 |
|
236 |
run()
|
|
|
203 |
return tabla
|
204 |
|
205 |
def run():
|
206 |
+
#col1, col2 = st.columns(2)
|
207 |
+
with st.form("my_form"):
|
208 |
search_words = st.text_input("Introduzca la frase, el usuario o localidad para analizar y pulse el check correspondiente")
|
209 |
number_of_tweets = st.number_input('Introduzca n煤mero de tweets a analizar del usuario M谩ximo 50', 0,50,0)
|
210 |
st.write("Escoja una Opci贸n")
|
|
|
225 |
|
226 |
if (error == False):
|
227 |
if (termino):
|
228 |
+
analizar_frase(search_words)
|
|
|
229 |
elif (usuario):
|
230 |
+
tweets_usuario(search_words,number_of_tweets)
|
|
|
231 |
elif (localidad):
|
232 |
+
tweets_localidad(search_words)
|
233 |
|
234 |
run()
|