Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,8 @@ print(f"{shost}")
|
|
| 15 |
HF_REDIRECT_URI = f"https://{shost}"
|
| 16 |
#HF_REDIRECT_URI = f"https://{shost}/login/callback"
|
| 17 |
|
| 18 |
-
|
|
|
|
| 19 |
|
| 20 |
# ---- Store Code if Present ----
|
| 21 |
query_params = st.experimental_get_query_params()
|
|
|
|
| 15 |
HF_REDIRECT_URI = f"https://{shost}"
|
| 16 |
#HF_REDIRECT_URI = f"https://{shost}/login/callback"
|
| 17 |
|
| 18 |
+
scope = "openid profile read"
|
| 19 |
+
AUTH_URL = f"https://huggingface.co/oauth/authorize?client_id={HF_CLIENT_ID}&redirect_uri={HF_REDIRECT_URI}&response_type=code&scope={scope}"
|
| 20 |
|
| 21 |
# ---- Store Code if Present ----
|
| 22 |
query_params = st.experimental_get_query_params()
|