Spaces:
Sleeping
Sleeping
Commit
·
d119bcb
1
Parent(s):
91356e3
debug
Browse files
main.py
CHANGED
@@ -387,7 +387,7 @@ async def get_random_sample(dataset_name: str = Query(..., alias="dataset-name")
|
|
387 |
@app.get("/login/callback")
|
388 |
async def oauth_callback(code: str, state: str):
|
389 |
# Verify the state value here
|
390 |
-
|
391 |
|
392 |
access_token = ""
|
393 |
try:
|
@@ -417,7 +417,6 @@ async def oauth_callback(code: str, state: str):
|
|
417 |
|
418 |
return {"access_token": access_token}
|
419 |
|
420 |
-
|
421 |
@app.get("/oauth-config")
|
422 |
async def get_oauth_config(request: Request):
|
423 |
# client_host = "https://huggingface.co/spaces/thomasgauthier/ChatExplorer#request.client.host
|
|
|
387 |
@app.get("/login/callback")
|
388 |
async def oauth_callback(code: str, state: str):
|
389 |
# Verify the state value here
|
390 |
+
print(client_id)
|
391 |
|
392 |
access_token = ""
|
393 |
try:
|
|
|
417 |
|
418 |
return {"access_token": access_token}
|
419 |
|
|
|
420 |
@app.get("/oauth-config")
|
421 |
async def get_oauth_config(request: Request):
|
422 |
# client_host = "https://huggingface.co/spaces/thomasgauthier/ChatExplorer#request.client.host
|