Spaces:
Runtime error
Runtime error
Download js/upload.js from bigslime/stablediffusion-infinity: direct link, hf CLI and curl.
- Browser
- Download file 746 Bytes
-
https://huggingface.co/spaces/bigslime/stablediffusion-infinity/resolve/main/js/upload.js
- Command line
-
hf download hf://spaces/bigslime/stablediffusion-infinity/js/upload.js
-
curl -L -o upload.js https://huggingface.co/spaces/bigslime/stablediffusion-infinity/resolve/main/js/upload.js
746 Bytes
| function(a,b){ | |
| if(!window.my_observe_upload) | |
| { | |
| console.log("setup upload here"); | |
| window.my_observe_upload = new MutationObserver(function (event) { | |
| console.log(event); | |
| var frame=document.querySelector("gradio-app").shadowRoot.querySelector("#sdinfframe").contentWindow.document; | |
| frame.querySelector("#upload").click(); | |
| }); | |
| window.my_observe_upload_target = document.querySelector("gradio-app").shadowRoot.querySelector("#upload span"); | |
| window.my_observe_upload.observe(window.my_observe_upload_target, { | |
| attributes: false, | |
| subtree: true, | |
| childList: true, | |
| characterData: true | |
| }); | |
| } | |
| return [a,b]; | |
| } |