Spaces:
Running
Running
lalashechka
commited on
Update index.html
Browse files- index.html +1 -25
index.html
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
max-width: 100% !important;
|
10 |
}
|
11 |
div#component-2 {
|
12 |
-
|
13 |
}
|
14 |
|
15 |
button#component-16 {
|
@@ -30,30 +30,6 @@ button#component-16 {
|
|
30 |
|
31 |
<gradio-app id='ga33' src="https://fffiloni-pasd.hf.space"></gradio-app>
|
32 |
|
33 |
-
<script>
|
34 |
-
const targetNode41354 = document.body; // или другой родительский элемент
|
35 |
-
const config41354 = { childList: true, subtree: true };
|
36 |
-
const callback41354 = function(mutationsList, observer) {
|
37 |
-
for(let mutation of mutationsList) {
|
38 |
-
if (mutation.type === 'childList') {
|
39 |
-
const grApp41354 = document.getElementById('ga33');
|
40 |
-
const targetDiv41354 = grApp41354.querySelector('#component-5');
|
41 |
-
|
42 |
-
const imgSrc = "http://localhost:7860/file=/tmp/gradio/85f0a75404f6d0ad5e6757284382fd4e388e091f/frog.png";
|
43 |
-
const newSrc = "https://myneuralnetworks.ru/static/img/fon19.webp";
|
44 |
-
|
45 |
-
targetDiv41354.querySelectorAll('img').forEach(img => {
|
46 |
-
if (img.src === imgSrc) {
|
47 |
-
img.src = newSrc;
|
48 |
-
}
|
49 |
-
});
|
50 |
-
observer.disconnect(); // Останавливаем наблюдение после изменения
|
51 |
-
}
|
52 |
-
}
|
53 |
-
};
|
54 |
-
const observer41354 = new MutationObserver(callback41354);
|
55 |
-
observer41354.observe(targetNode41354, config41354);
|
56 |
-
</script>
|
57 |
|
58 |
<script>
|
59 |
const targetNode4135 = document.body; // или другой родительский элемент
|
|
|
9 |
max-width: 100% !important;
|
10 |
}
|
11 |
div#component-2 {
|
12 |
+
display: none;
|
13 |
}
|
14 |
|
15 |
button#component-16 {
|
|
|
30 |
|
31 |
<gradio-app id='ga33' src="https://fffiloni-pasd.hf.space"></gradio-app>
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
<script>
|
35 |
const targetNode4135 = document.body; // или другой родительский элемент
|