Spaces:
Running
Running
lalashechka
commited on
Commit
•
fa657f6
1
Parent(s):
d24df23
Update index.html
Browse files- index.html +19 -0
index.html
CHANGED
@@ -29,6 +29,25 @@ button#component-16 {
|
|
29 |
></script>
|
30 |
|
31 |
<gradio-app id='ga33' src="https://fffiloni-pasd.hf.space"></gradio-app>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
<script>
|
33 |
const targetNode3 = document.body; // или другой родительский элемент
|
34 |
const config3 = { childList: true, subtree: true };
|
|
|
29 |
></script>
|
30 |
|
31 |
<gradio-app id='ga33' src="https://fffiloni-pasd.hf.space"></gradio-app>
|
32 |
+
|
33 |
+
<script>
|
34 |
+
const targetNode4135 = document.body; // или другой родительский элемент
|
35 |
+
const config4135 = { childList: true, subtree: true };
|
36 |
+
const callback4135 = function(mutationsList, observer) {
|
37 |
+
for(let mutation of mutationsList) {
|
38 |
+
if (mutation.type === 'childList') {
|
39 |
+
const grApp4132 = document.getElementById('ga33');
|
40 |
+
const targetDiv4135 = grApp4132.querySelector('#component-20');
|
41 |
+
const targetSpan4135 = targetDiv4135.querySelector('label[data-testid="block-label"]');
|
42 |
+
targetSpan4135.textContent = "Скачать результат:";
|
43 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
44 |
+
}
|
45 |
+
}
|
46 |
+
};
|
47 |
+
const observer4135 = new MutationObserver(callback4135);
|
48 |
+
observer4135.observe(targetNode4135, config4135);
|
49 |
+
</script>
|
50 |
+
|
51 |
<script>
|
52 |
const targetNode3 = document.body; // или другой родительский элемент
|
53 |
const config3 = { childList: true, subtree: true };
|