User1342 commited on
Commit
563d741
1 Parent(s): 2b5e348

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -146,12 +146,13 @@ def get_client_from_tokens(url):
146
  scope=["block.write"])
147
 
148
 
149
- url = "https://hf.space/embed/User1342/WatchTower/?state={}&code={}".format(url["state"],url["code"])
150
  print("urls {}".format(url))
151
  their_client = None
152
  if url != None:
 
153
  access_token = oauth1_user_handler.fetch_token(
154
- str(url)
155
  )
156
  their_client = tweepy.Client(access_token)
157
 
 
146
  scope=["block.write"])
147
 
148
 
149
+ url = "https://hf.space/embed/User1342/WatchTower/?state={}&code={}&client_id={}".format(url["state"],url["code"],client_id)
150
  print("urls {}".format(url))
151
  their_client = None
152
  if url != None:
153
+
154
  access_token = oauth1_user_handler.fetch_token(
155
+ url
156
  )
157
  their_client = tweepy.Client(access_token)
158