Yaswanth56 commited on
Commit
873ce69
·
verified ·
1 Parent(s): 7aa2f67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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['access_token'] # Correct key to fetch the access token
65
- instance_url = token_info['instance_url'] # Correct key to fetch the instance URL
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