shvuuuu commited on
Commit
7b13c08
1 Parent(s): b7c1976

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
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(os.environ['consumer_key'],os.environ['consumer_secret'])
12
- auth.set_access_token(os.environ['access_key'],os.environ['access_secret'])
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):