Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,8 +61,8 @@ def oauth_callback():
|
|
| 61 |
|
| 62 |
if token_response.status_code == 200:
|
| 63 |
token_info = token_response.json()
|
| 64 |
-
access_token = token_info['
|
| 65 |
-
instance_url = token_info['
|
| 66 |
|
| 67 |
# Store access token in session for future API requests
|
| 68 |
session['access_token'] = access_token
|
|
|
|
| 61 |
|
| 62 |
if token_response.status_code == 200:
|
| 63 |
token_info = token_response.json()
|
| 64 |
+
access_token = token_info['sSSjyhInIsUohKpG8sHzty2q'] # Correct key to fetch the access token
|
| 65 |
+
instance_url = token_info['https://huggingface.co/spaces/Yaswanth56/python_test'] # Correct key to fetch the instance URL
|
| 66 |
|
| 67 |
# Store access token in session for future API requests
|
| 68 |
session['access_token'] = access_token
|