File size: 562 Bytes
3806142
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(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);
})();