Update app.py
Browse files
app.py
CHANGED
@@ -173,11 +173,11 @@ def main(results, post_comments):
|
|
173 |
})
|
174 |
time.sleep(20)
|
175 |
|
176 |
-
sentiments =
|
177 |
-
interactions =
|
178 |
-
neutral_sentiments =
|
179 |
-
positive_sentiments =
|
180 |
-
negative_sentiments =
|
181 |
|
182 |
for parent_company, subreddit_dict in tqdm(post_comments.items()):
|
183 |
for subreddit, posts in subreddit_dict.items():
|
|
|
173 |
})
|
174 |
time.sleep(20)
|
175 |
|
176 |
+
sentiments = {"Apple":[], "Microsoft":[], "Alphabet":[], "Amazon":[], "Nvidia":[], "Tesla":[], "Meta":[]}
|
177 |
+
interactions = {"Apple":0, "Microsoft":0, "Alphabet":0, "Amazon":0, "Nvidia":0, "Tesla":0, "Meta":0}
|
178 |
+
neutral_sentiments = {"Apple":0, "Microsoft":0, "Alphabet":0, "Amazon":0, "Nvidia":0, "Tesla":0, "Meta":0}
|
179 |
+
positive_sentiments = {"Apple":0, "Microsoft":0, "Alphabet":0, "Amazon":0, "Nvidia":0, "Tesla":0, "Meta":0}
|
180 |
+
negative_sentiments = {"Apple":0, "Microsoft":0, "Alphabet":0, "Amazon":0, "Nvidia":0, "Tesla":0, "Meta":0}
|
181 |
|
182 |
for parent_company, subreddit_dict in tqdm(post_comments.items()):
|
183 |
for subreddit, posts in subreddit_dict.items():
|