Spaces:
Running
Running
Update index.html
Browse files- index.html +10 -0
index.html
CHANGED
@@ -11,11 +11,21 @@
|
|
11 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
12 |
<script type="module" crossorigin src="/assets/index-YaaS_KTT.js"></script>
|
13 |
<link rel="stylesheet" crossorigin href="/assets/index-tIWBrD2G.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
</head>
|
15 |
<body>
|
16 |
<div id="app"></div>
|
17 |
<script type="module">
|
|
|
18 |
console.log(window.huggingface)
|
|
|
19 |
</script>
|
20 |
</body>
|
21 |
</html>
|
|
|
11 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
12 |
<script type="module" crossorigin src="/assets/index-YaaS_KTT.js"></script>
|
13 |
<link rel="stylesheet" crossorigin href="/assets/index-tIWBrD2G.css">
|
14 |
+
<script src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
|
15 |
+
<script type="importmap">
|
16 |
+
{
|
17 |
+
"imports": {
|
18 |
+
"@huggingface/hub": "https://cdn.jsdelivr.net/npm/@huggingface/[email protected]/+esm"
|
19 |
+
}
|
20 |
+
}
|
21 |
+
</script>
|
22 |
</head>
|
23 |
<body>
|
24 |
<div id="app"></div>
|
25 |
<script type="module">
|
26 |
+
import { oauthLoginUrl, oauthHandleRedirectIfPresent } from "@huggingface/hub";
|
27 |
console.log(window.huggingface)
|
28 |
+
console.log(await oauthLoginUrl({scopes: window.huggingface.variables.OAUTH_SCOPES})) + "&prompt=consent")
|
29 |
</script>
|
30 |
</body>
|
31 |
</html>
|