File size: 5,121 Bytes
d778197
 
 
 
 
 
3add90e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d778197
 
3add90e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d778197
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!doctype html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width" />
		<title>My static Space</title>
		<style>
          div#component-2 {
    display: none;
}
          div#component-20 {
    display: none;
}
button#component-16 {
    margin-bottom: 20px;
    border-radius: 10px;
    background: #e253dd;
    color: white;
    box-shadow: none;
    border: none !important;
}
        </style>
	</head>
	<body>
		<script
	type="module"
	src="https://gradio.s3-us-west-2.amazonaws.com/4.16.0/gradio.js"
></script>

<gradio-app id='ga33' src="https://fffiloni-pasd.hf.space"></gradio-app>
<script>
const targetNode3 = document.body; // или другой родительский элемент
const config3 = { childList: true, subtree: true };
const callback3 = function(mutationsList, observer) {
    for(let mutation of mutationsList) {
        if (mutation.type === 'childList') {
            const grApp3 = document.getElementById('ga33');
            
            const targetDiv3 = grApp3.querySelector('#component-7');
            const targetSpan3 = Array.from(targetDiv3.querySelectorAll('span')).find(span => span.textContent.includes('Advanced settings'));
            targetSpan3.textContent = "Расширенные настройки";
            observer.disconnect(); // Останавливаем наблюдение после изменения
        }
    }
};
const observer3 = new MutationObserver(callback3);
observer3.observe(targetNode3, config3);
</script>
      
<script>
    const targetNode141 = document.body; // или другой родительский элемент
    const config141 = { childList: true, subtree: true };
    const callback141 = function(mutationsList, observer) {
        for(let mutation of mutationsList) {
            if (mutation.type === 'childList') {
                const grApp141 = document.getElementById('ga33');
                const targetDiv141 = grApp141.querySelector('#component-6');
                const targetSpan141 = targetDiv141.querySelector('span[data-testid="block-info"]');
                targetSpan141.textContent = "Краткое описание фото:";
                observer.disconnect(); // Останавливаем наблюдение после изменения
            }
        }
    };
    const observer141 = new MutationObserver(callback141);
    observer141.observe(targetNode141, config141);
</script>
      
      
<script>
    const targetNode4135 = document.body; // или другой родительский элемент
    const config4135 = { childList: true, subtree: true };
    const callback4135 = function(mutationsList, observer) {
        for(let mutation of mutationsList) {
            if (mutation.type === 'childList') {
                const grApp4132 = document.getElementById('ga33');
                const targetDiv4135 = grApp4132.querySelector('#component-19');
                const targetSpan4135 = targetDiv4135.querySelector('label[data-testid="block-label"]');
                targetSpan4135.textContent = "Результат №2:";
                observer.disconnect(); // Останавливаем наблюдение после изменения
            }
        }
    };
    const observer4135 = new MutationObserver(callback4135);
    observer4135.observe(targetNode4135, config4135);
</script>
      
<script>
    const targetNode5 = document.body; // или другой родительский элемент
    const config5 = { childList: true, subtree: true };
    const callback5 = function(mutationsList, observer) {
        for(let mutation of mutationsList) {
            if (mutation.type === 'childList') {
                const grApp2 = document.getElementById('ga33');
                const targetDiv5 = grApp2.querySelector('#component-5');
                const targetSpan5 = targetDiv5.querySelector('label[data-testid="block-label"]');
                targetSpan5.textContent = "Исходное фото:";
                observer.disconnect(); // Останавливаем наблюдение после изменения
            }
        }
    };
    const observer5 = new MutationObserver(callback5);
    observer5.observe(targetNode5, config5);
</script>
      
<script>
    const targetNode8 = document.body; // или другой родительский элемент
    const config8 = { childList: true, subtree: true };
    const callback8 = function(mutationsList, observer) {
        for(let mutation of mutationsList) {
            if (mutation.type === 'childList') {
                const grApp8 = document.getElementById('ga33');
                const targetDiv8 = grApp8.querySelector('#component-16');
                targetDiv8.textContent = "Улучшить фото";
                observer.disconnect(); // Останавливаем наблюдение после изменения
            }
        }
    };
    const observer8 = new MutationObserver(callback8);
    observer8.observe(targetNode8, config8);
</script>

	</body>
</html>