Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -236,12 +236,15 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
|
|
236 |
|
237 |
js_AutoSave="""
|
238 |
<script>
|
239 |
-
|
|
|
|
|
|
|
240 |
observer = new MutationObserver((changes) => {
|
241 |
changes.forEach(change => {
|
242 |
if(change.attributeName.includes('src')){
|
243 |
console.log(img1.src);
|
244 |
-
document.querySelector("div#component-
|
245 |
}
|
246 |
});
|
247 |
});
|
|
|
236 |
|
237 |
js_AutoSave="""
|
238 |
<script>
|
239 |
+
|
240 |
+
console.log("Yo");
|
241 |
+
|
242 |
+
var img1 = document.querySelector("div#component-355 .svelte-1kpcxni button.svelte-1kpcxni .svelte-1kpcxni img"),
|
243 |
observer = new MutationObserver((changes) => {
|
244 |
changes.forEach(change => {
|
245 |
if(change.attributeName.includes('src')){
|
246 |
console.log(img1.src);
|
247 |
+
document.querySelector("div#component-355 .svelte-1kpcxni .svelte-sr71km a.svelte-1s8vnbx button").click();
|
248 |
}
|
249 |
});
|
250 |
});
|