Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
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 |
|