Spaces:
Running
Running
Update index.html
Browse files- index.html +2 -2
index.html
CHANGED
@@ -28,14 +28,14 @@
|
|
28 |
<script type="module">
|
29 |
import { oauthLoginUrl, oauthHandleRedirectIfPresent } from "@huggingface/hub";
|
30 |
|
31 |
-
const oauthResult = await oauthHandleRedirectIfPresent({clientId: "8f1a1d63-479b-46c8-84cb-521fe9f3222f", hubUrl: "http://localhost:
|
32 |
|
33 |
if (oauthResult) {
|
34 |
document.querySelector("pre").textContent = JSON.stringify(oauthResult, null, 2);
|
35 |
} else {
|
36 |
document.getElementById("signin").style.removeProperty("display");
|
37 |
document.getElementById("signin").onclick = async function() {
|
38 |
-
window.location.href = await oauthLoginUrl({clientId: "8f1a1d63-479b-46c8-84cb-521fe9f3222f", hubUrl: "http://localhost:
|
39 |
}
|
40 |
}
|
41 |
</script>
|
|
|
28 |
<script type="module">
|
29 |
import { oauthLoginUrl, oauthHandleRedirectIfPresent } from "@huggingface/hub";
|
30 |
|
31 |
+
const oauthResult = await oauthHandleRedirectIfPresent({clientId: "8f1a1d63-479b-46c8-84cb-521fe9f3222f", hubUrl: "http://localhost:5564"});
|
32 |
|
33 |
if (oauthResult) {
|
34 |
document.querySelector("pre").textContent = JSON.stringify(oauthResult, null, 2);
|
35 |
} else {
|
36 |
document.getElementById("signin").style.removeProperty("display");
|
37 |
document.getElementById("signin").onclick = async function() {
|
38 |
+
window.location.href = await oauthLoginUrl({clientId: "8f1a1d63-479b-46c8-84cb-521fe9f3222f", hubUrl: "http://localhost:5564"});
|
39 |
}
|
40 |
}
|
41 |
</script>
|