Spaces:
Runtime error
Runtime error
Commit
·
7cac3da
1
Parent(s):
144e64f
Update app.py
Browse files
app.py
CHANGED
@@ -114,9 +114,9 @@ def run():
|
|
114 |
|
115 |
tweet_list = [i.text for i in tweets]
|
116 |
#tweet_list = [strip_undesired_chars(i.text) for i in tweets]
|
117 |
-
text= pd.DataFrame(tweet_list)
|
118 |
#text[0] = text[0].apply(preprocess)
|
119 |
-
text[0] = text[0].apply(
|
120 |
text1=text[0].values
|
121 |
indices1=tokenizer.batch_encode_plus(text1.tolist(),
|
122 |
max_length=128,
|
|
|
114 |
|
115 |
tweet_list = [i.text for i in tweets]
|
116 |
#tweet_list = [strip_undesired_chars(i.text) for i in tweets]
|
117 |
+
text= pd.DataFrame(preprocess(tweet_list))
|
118 |
#text[0] = text[0].apply(preprocess)
|
119 |
+
#text[0] = text[0].apply(preprocess_tweet)
|
120 |
text1=text[0].values
|
121 |
indices1=tokenizer.batch_encode_plus(text1.tolist(),
|
122 |
max_length=128,
|