thibaud frere
commited on
Commit
·
283947d
1
Parent(s):
7c11f00
fix
Browse files- index.html +1 -1
index.html
CHANGED
|
@@ -31,7 +31,7 @@
|
|
| 31 |
</div>
|
| 32 |
<script>
|
| 33 |
// Utiliser le client_id injecté par Hugging Face dans l'environnement du Space
|
| 34 |
-
const CLIENT_ID =
|
| 35 |
const REDIRECT_URI = window.location.origin + window.location.pathname;
|
| 36 |
const HF_OAUTH_URL = 'https://huggingface.co/oauth/authorize';
|
| 37 |
const HF_TOKEN_URL = 'https://huggingface.co/oauth/token';
|
|
|
|
| 31 |
</div>
|
| 32 |
<script>
|
| 33 |
// Utiliser le client_id injecté par Hugging Face dans l'environnement du Space
|
| 34 |
+
const CLIENT_ID = window.huggingface?.variables?.OAUTH_CLIENT_ID;
|
| 35 |
const REDIRECT_URI = window.location.origin + window.location.pathname;
|
| 36 |
const HF_OAUTH_URL = 'https://huggingface.co/oauth/authorize';
|
| 37 |
const HF_TOKEN_URL = 'https://huggingface.co/oauth/token';
|