Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,8 @@ print(f"{shost}")
|
|
| 23 |
HF_REDIRECT_URI = f"https://{shost}"
|
| 24 |
#HF_REDIRECT_URI = f"https://{shost}/login/callback"
|
| 25 |
|
| 26 |
-
scope = "openid+profile+read"
|
|
|
|
| 27 |
st_state = st.session_state["state"]
|
| 28 |
AUTH_URL = f"https://huggingface.co/oauth/authorize?client_id={HF_CLIENT_ID}&redirect_uri={HF_REDIRECT_URI}&response_type=code&scope={scope}&state={st_state}"
|
| 29 |
|
|
|
|
| 23 |
HF_REDIRECT_URI = f"https://{shost}"
|
| 24 |
#HF_REDIRECT_URI = f"https://{shost}/login/callback"
|
| 25 |
|
| 26 |
+
#scope = "openid+profile+read"
|
| 27 |
+
scope = "profile"
|
| 28 |
st_state = st.session_state["state"]
|
| 29 |
AUTH_URL = f"https://huggingface.co/oauth/authorize?client_id={HF_CLIENT_ID}&redirect_uri={HF_REDIRECT_URI}&response_type=code&scope={scope}&state={st_state}"
|
| 30 |
|