Spaces:
Paused
Paused
@spaces.GPU(duration=60)
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ class RequestHandler(BaseHTTPRequestHandler):
|
|
| 21 |
if self.path.startswith("/callback"):
|
| 22 |
# Capture the authorization code
|
| 23 |
code = self.path.split("code=")[1]
|
| 24 |
-
token_url = f"{
|
| 25 |
response = requests.post(token_url, data={
|
| 26 |
'client_id': CLIENT_ID,
|
| 27 |
'client_secret': CLIENT_SECRET,
|
|
|
|
| 21 |
if self.path.startswith("/callback"):
|
| 22 |
# Capture the authorization code
|
| 23 |
code = self.path.split("code=")[1]
|
| 24 |
+
token_url = f"{AUTH_URL}/token"
|
| 25 |
response = requests.post(token_url, data={
|
| 26 |
'client_id': CLIENT_ID,
|
| 27 |
'client_secret': CLIENT_SECRET,
|