Spaces:
Runtime error
Runtime error
Commit
·
389deb3
1
Parent(s):
7d6cb82
Corrección de manejo de errores
Browse files
app.py
CHANGED
@@ -145,8 +145,11 @@ def run():
|
|
145 |
tweet_list = [i.full_text for i in tweets]
|
146 |
|
147 |
if not tweet_list:
|
148 |
-
|
|
|
|
|
149 |
return
|
|
|
150 |
|
151 |
text= pd.DataFrame(tweet_list)
|
152 |
text[0] = text[0].apply(preprocess_tweet)
|
|
|
145 |
tweet_list = [i.full_text for i in tweets]
|
146 |
|
147 |
if not tweet_list:
|
148 |
+
msg = "No se encontraron tweets publicados por el "+filtro+" ingresado."
|
149 |
+
msg2= "No se encontraron tweets publicados para el "+filtro+" ingresado."
|
150 |
+
st.error(msg if filtro=='Usuario' else msg2)
|
151 |
return
|
152 |
+
|
153 |
|
154 |
text= pd.DataFrame(tweet_list)
|
155 |
text[0] = text[0].apply(preprocess_tweet)
|