Spaces:
Running
Running
lalashechka
commited on
Commit
•
0da1403
1
Parent(s):
38f0c61
Update index.html
Browse files- index.html +133 -2
index.html
CHANGED
@@ -25,12 +25,143 @@ button#component-16 {
|
|
25 |
<body>
|
26 |
<script
|
27 |
type="module"
|
28 |
-
src="https://gradio.s3-us-west-2.amazonaws.com/4.
|
29 |
></script>
|
30 |
|
31 |
<gradio-app id='ga33' src="https://fffiloni-pasd.hf.space"></gradio-app>
|
32 |
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
</body>
|
36 |
</html>
|
|
|
25 |
<body>
|
26 |
<script
|
27 |
type="module"
|
28 |
+
src="https://gradio.s3-us-west-2.amazonaws.com/4.16.0/gradio.js"
|
29 |
></script>
|
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 = "https://fffiloni-pasd.hf.space/--replicas/aieqz/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 |
+
<script>
|
58 |
+
const targetNode4135 = document.body; // или другой родительский элемент
|
59 |
+
const config4135 = { childList: true, subtree: true };
|
60 |
+
const callback4135 = function(mutationsList, observer) {
|
61 |
+
for(let mutation of mutationsList) {
|
62 |
+
if (mutation.type === 'childList') {
|
63 |
+
const grApp41325 = document.getElementById('ga33');
|
64 |
+
const targetDiv4135 = grApp41325.querySelector('#component-20');
|
65 |
+
const targetSpan4135 = targetDiv4135.querySelector('label[data-testid="block-label"]');
|
66 |
+
targetSpan4135.textContent = "Скачать результат:";
|
67 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
68 |
+
}
|
69 |
+
}
|
70 |
+
};
|
71 |
+
const observer4135 = new MutationObserver(callback4135);
|
72 |
+
observer4135.observe(targetNode4135, config4135);
|
73 |
+
</script>
|
74 |
+
|
75 |
+
<script>
|
76 |
+
const targetNode3 = document.body; // или другой родительский элемент
|
77 |
+
const config3 = { childList: true, subtree: true };
|
78 |
+
const callback3 = function(mutationsList, observer) {
|
79 |
+
for(let mutation of mutationsList) {
|
80 |
+
if (mutation.type === 'childList') {
|
81 |
+
const grApp3 = document.getElementById('ga33');
|
82 |
+
|
83 |
+
const targetDiv3 = grApp3.querySelector('#component-7');
|
84 |
+
const targetSpan3 = Array.from(targetDiv3.querySelectorAll('span')).find(span => span.textContent.includes('Advanced settings'));
|
85 |
+
targetSpan3.textContent = "Расширенные настройки";
|
86 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
87 |
+
}
|
88 |
+
}
|
89 |
+
};
|
90 |
+
const observer3 = new MutationObserver(callback3);
|
91 |
+
observer3.observe(targetNode3, config3);
|
92 |
+
</script>
|
93 |
+
|
94 |
+
<script>
|
95 |
+
const targetNode141 = document.body; // или другой родительский элемент
|
96 |
+
const config141 = { childList: true, subtree: true };
|
97 |
+
const callback141 = function(mutationsList, observer) {
|
98 |
+
for(let mutation of mutationsList) {
|
99 |
+
if (mutation.type === 'childList') {
|
100 |
+
const grApp141 = document.getElementById('ga33');
|
101 |
+
const targetDiv141 = grApp141.querySelector('#component-6');
|
102 |
+
const targetSpan141 = targetDiv141.querySelector('span[data-testid="block-info"]');
|
103 |
+
targetSpan141.textContent = "Краткое описание фото:";
|
104 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
105 |
+
}
|
106 |
+
}
|
107 |
+
};
|
108 |
+
const observer141 = new MutationObserver(callback141);
|
109 |
+
observer141.observe(targetNode141, config141);
|
110 |
+
</script>
|
111 |
+
|
112 |
+
|
113 |
+
<script>
|
114 |
+
const targetNode54135 = document.body; // или другой родительский элемент
|
115 |
+
const config54135 = { childList: true, subtree: true };
|
116 |
+
const callback54135 = function(mutationsList, observer) {
|
117 |
+
for(let mutation of mutationsList) {
|
118 |
+
if (mutation.type === 'childList') {
|
119 |
+
const grApp54132 = document.getElementById('ga33');
|
120 |
+
const targetDiv54135 = grApp54132.querySelector('#component-19');
|
121 |
+
const targetSpan54135 = targetDiv54135.querySelector('label[data-testid="block-label"]');
|
122 |
+
targetSpan54135.textContent = "Результат:";
|
123 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
124 |
+
}
|
125 |
+
}
|
126 |
+
};
|
127 |
+
const observer54135 = new MutationObserver(callback54135);
|
128 |
+
observer54135.observe(targetNode54135, config54135);
|
129 |
+
</script>
|
130 |
+
|
131 |
+
<script>
|
132 |
+
const targetNode5 = document.body; // или другой родительский элемент
|
133 |
+
const config5 = { childList: true, subtree: true };
|
134 |
+
const callback5 = function(mutationsList, observer) {
|
135 |
+
for(let mutation of mutationsList) {
|
136 |
+
if (mutation.type === 'childList') {
|
137 |
+
const grApp2 = document.getElementById('ga33');
|
138 |
+
const targetDiv5 = grApp2.querySelector('#component-5');
|
139 |
+
const targetSpan5 = targetDiv5.querySelector('label[data-testid="block-label"]');
|
140 |
+
targetSpan5.textContent = "Исходное фото:";
|
141 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
142 |
+
}
|
143 |
+
}
|
144 |
+
};
|
145 |
+
const observer5 = new MutationObserver(callback5);
|
146 |
+
observer5.observe(targetNode5, config5);
|
147 |
+
</script>
|
148 |
+
|
149 |
+
<script>
|
150 |
+
const targetNode8 = document.body; // или другой родительский элемент
|
151 |
+
const config8 = { childList: true, subtree: true };
|
152 |
+
const callback8 = function(mutationsList, observer) {
|
153 |
+
for(let mutation of mutationsList) {
|
154 |
+
if (mutation.type === 'childList') {
|
155 |
+
const grApp8 = document.getElementById('ga33');
|
156 |
+
const targetDiv8 = grApp8.querySelector('#component-16');
|
157 |
+
targetDiv8.textContent = "Улучшить фото";
|
158 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
159 |
+
}
|
160 |
+
}
|
161 |
+
};
|
162 |
+
const observer8 = new MutationObserver(callback8);
|
163 |
+
observer8.observe(targetNode8, config8);
|
164 |
+
</script>
|
165 |
|
166 |
</body>
|
167 |
</html>
|