Spaces:
Runtime error
Runtime error
Commit
·
4f31ce9
1
Parent(s):
938d354
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def analizar_tweets(search_words, number_of_tweets):
|
|
92 |
for tweet in tweets:
|
93 |
if (tweet.full_text.startswith('RT')):
|
94 |
continue
|
95 |
-
elif
|
96 |
continue
|
97 |
else:
|
98 |
datos = preprocess(tweet.full_text)
|
@@ -140,7 +140,7 @@ def tweets_localidad(buscar_localidad):
|
|
140 |
for tweet in tweets:
|
141 |
if (tweet.full_text.startswith('RT')):
|
142 |
continue
|
143 |
-
elif not tweet.full_text.strip:
|
144 |
continue
|
145 |
else:
|
146 |
datos = preprocess(tweet.full_text)
|
|
|
92 |
for tweet in tweets:
|
93 |
if (tweet.full_text.startswith('RT')):
|
94 |
continue
|
95 |
+
elif tweet.full_text == "":
|
96 |
continue
|
97 |
else:
|
98 |
datos = preprocess(tweet.full_text)
|
|
|
140 |
for tweet in tweets:
|
141 |
if (tweet.full_text.startswith('RT')):
|
142 |
continue
|
143 |
+
elif not tweet.full_text.strip():
|
144 |
continue
|
145 |
else:
|
146 |
datos = preprocess(tweet.full_text)
|