Spaces:
Running
Running
Download templates/widget/loader.js from 2Btainment/spaceforge: direct link, hf CLI and curl.
- Browser
- Download file 562 Bytes
-
https://huggingface.co/spaces/2Btainment/spaceforge/resolve/main/templates/widget/loader.js
- Command line
-
hf download hf://spaces/2Btainment/spaceforge/templates/widget/loader.js
-
curl -L -o loader.js https://huggingface.co/spaces/2Btainment/spaceforge/resolve/main/templates/widget/loader.js
562 Bytes
| (function () { | |
| const root = document.getElementById("sf-root"); | |
| if (!root) return; | |
| const url = root.dataset.embed || "{{EMBED_URL}}"; | |
| const iframe = document.createElement("iframe"); | |
| iframe.src = url; | |
| iframe.title = root.dataset.repo || "Hugging Face Space"; | |
| iframe.allow = "accelerometer; camera; microphone; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"; | |
| iframe.allowFullscreen = true; | |
| iframe.referrerPolicy = "strict-origin-when-cross-origin"; | |
| iframe.className = "sf-frame"; | |
| root.appendChild(iframe); | |
| })(); | |