Spaces:
Runtime error
Runtime error
Upload index.html with huggingface_hub
Browse files- index.html +1 -7
index.html
CHANGED
|
@@ -78,13 +78,7 @@
|
|
| 78 |
function emitGpu(){ try{ window.dispatchEvent(new CustomEvent("mrt-gpu",{detail:{remaining:budget,len:sessionLen,playing:playing}})); }catch(e){} }
|
| 79 |
let Client;
|
| 80 |
import("https://cdn.jsdelivr.net/npm/@gradio/client/dist/index.min.js").then(m=>{Client=m.Client;});
|
| 81 |
-
|
| 82 |
-
if(APP==="studio") return; // studio stays full-width
|
| 83 |
-
const st=document.createElement("style");
|
| 84 |
-
st.textContent="html,body{background:#161719}#root{max-width:1180px;margin:0 auto}#root>div{width:100%!important}";
|
| 85 |
-
document.head.appendChild(st);
|
| 86 |
-
}
|
| 87 |
-
window.addEventListener("load",()=>{ contain(); setTimeout(emitGpu,300); });
|
| 88 |
})();
|
| 89 |
</script>
|
| 90 |
|
|
|
|
| 78 |
function emitGpu(){ try{ window.dispatchEvent(new CustomEvent("mrt-gpu",{detail:{remaining:budget,len:sessionLen,playing:playing}})); }catch(e){} }
|
| 79 |
let Client;
|
| 80 |
import("https://cdn.jsdelivr.net/npm/@gradio/client/dist/index.min.js").then(m=>{Client=m.Client;});
|
| 81 |
+
window.addEventListener("load",()=>setTimeout(emitGpu,300));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
})();
|
| 83 |
</script>
|
| 84 |
|