Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -192,6 +192,8 @@ def load_js(name):
|
|
192 |
return f"""
|
193 |
function (x)
|
194 |
{{
|
|
|
|
|
195 |
let frame=document.querySelector("gradio-app").shadowRoot.querySelector("#sdinfframe").contentWindow.document;
|
196 |
let button=frame.querySelector("#{name}");
|
197 |
button.click();
|
|
|
192 |
return f"""
|
193 |
function (x)
|
194 |
{{
|
195 |
+
console.log(document.querySelector("gradio-app"));
|
196 |
+
console.log(document.querySelector("iframe"));
|
197 |
let frame=document.querySelector("gradio-app").shadowRoot.querySelector("#sdinfframe").contentWindow.document;
|
198 |
let button=frame.querySelector("#{name}");
|
199 |
button.click();
|
utils.py
CHANGED
@@ -14,10 +14,7 @@ if os.name != "nt":
|
|
14 |
try:
|
15 |
from PyPatchMatch import patch_match
|
16 |
except Exception as e:
|
17 |
-
|
18 |
-
import patch_match
|
19 |
-
except Exception as e:
|
20 |
-
patch_match_compiled = False
|
21 |
|
22 |
try:
|
23 |
patch_match
|
|
|
14 |
try:
|
15 |
from PyPatchMatch import patch_match
|
16 |
except Exception as e:
|
17 |
+
import patch_match
|
|
|
|
|
|
|
18 |
|
19 |
try:
|
20 |
patch_match
|