Update app.py
Browse files
app.py
CHANGED
@@ -7,10 +7,13 @@ import os
|
|
7 |
from plotly.subplots import make_subplots
|
8 |
from transformers import pipeline
|
9 |
|
|
|
|
|
|
|
|
|
10 |
|
11 |
-
auth = tweepy.OAuthHandler(
|
12 |
-
auth.set_access_token(
|
13 |
-
api = tweepy.API(auth)
|
14 |
|
15 |
|
16 |
def get_tweets(username, count):
|
|
|
7 |
from plotly.subplots import make_subplots
|
8 |
from transformers import pipeline
|
9 |
|
10 |
+
consumer_key = os.environ['consumer_key']
|
11 |
+
consumer_secret = os.environ['consumer_secret']
|
12 |
+
access_key = os.environ['access_key']
|
13 |
+
access_secret = os.environ['access_secret']
|
14 |
|
15 |
+
auth = tweepy.OAuthHandler(consumer_key,consumer_secret)
|
16 |
+
auth.set_access_token(access_key,access_secret)
|
|
|
17 |
|
18 |
|
19 |
def get_tweets(username, count):
|