File size: 8,225 Bytes
4b56c6c
 
 
 
 
 
5c872df
d2aa4dd
 
 
5c872df
 
 
 
 
2d6972c
 
 
 
 
8e9616d
2d6972c
 
 
 
 
 
 
 
 
5c872df
4b56c6c
 
5c872df
 
 
 
 
8e9616d
5c872df
febcaf7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8e9616d
 
 
 
 
 
 
 
 
c2133b7
8e9616d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4b56c6c
 
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!doctype html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width" />
		<title>My static Space</title>
		<style>
#col-container {
    max-width: 100% !important;
}
          div#component-2 {
    display: none;
}
div#component-20 {
    display: none;
} 
#component-3 {
  flex-direction: column;
}
#component-5 {
            width: 100% !important;
          }
button#component-5 {
    margin-bottom: 20px;
    border-radius: 10px;
    background: #e253dd;
    color: white;
    box-shadow: none;
  border: none;
}
        </style>
	</head>
	<body>
		<script
	type="module"
	src="https://gradio.s3-us-west-2.amazonaws.com/4.37.2/gradio.js"
></script>

<gradio-app id='ga1' src="https://prodia-fast-sd3-medium.hf.space"></gradio-app>

<script>
const targetNode11332 = document.body; // или другой родительский элемент
const config11332 = { childList: true, subtree: true };
const callback11332 = function(mutationsList, observer) {
    for(let mutation of mutationsList) {
        if (mutation.type === 'childList') {
            const grApp11332 = document.getElementById('ga1');
            
            const targetDiv11332 = grApp11332.querySelector('#component-10');
            const targetSpan11332 = Array.from(targetDiv11332.querySelectorAll('span')).find(span => span.textContent.includes('Randomize seed'));
            targetSpan11332.textContent = "Случайный seed";
            observer.disconnect(); // Останавливаем наблюдение после изменения
        }
    }
};
const observer11332 = new MutationObserver(callback11332);
observer11332.observe(targetNode11332, config11332);
</script>
      
<script>
const targetNode152 = document.body; // или другой родительский элемент
const config152 = { childList: true, subtree: true };
const callback152 = function(mutationsList, observer) {
    for(let mutation of mutationsList) {
        if (mutation.type === 'childList') {
            const grApp152 = document.getElementById('ga1');
            const targetDiv152 = grApp152.querySelector('#component-8');
            const targetSpan152 = targetDiv152.querySelector('input[data-testid="textbox"]');
            targetSpan152.placeholder = "Напишите, чего не должно быть на изображении...";
            observer.disconnect(); // Останавливаем наблюдение после изменения
        }
    }
};
const observer152 = new MutationObserver(callback152);
observer152.observe(targetNode152, config152);
</script>

      
<script>
const targetNode61532113324 = document.body; // или другой родительский элемент
const config61532113324 = { childList: true, subtree: true };
const callback61532113324 = function(mutationsList, observer) {
    for(let mutation of mutationsList) {
        if (mutation.type === 'childList') {
            const grApp61532113324 = document.getElementById('ga1');
            
            const targetDiv61532113324 = grApp61532113324.querySelector('#component-17');
            const targetSpan61532113324 = Array.from(targetDiv61532113324.querySelectorAll('span')).find(span => span.textContent.includes('Number of inference steps'));
            targetSpan61532113324.textContent = "Число шагов генерации:";
            observer.disconnect(); // Останавливаем наблюдение после изменения
        }
    }
};
const observer61532113324 = new MutationObserver(callback61532113324);
observer61532113324.observe(targetNode61532113324, config61532113324);
</script>
      
<script>
const targetNode1532113324 = document.body; // или другой родительский элемент
const config1532113324 = { childList: true, subtree: true };
const callback1532113324 = function(mutationsList, observer) {
    for(let mutation of mutationsList) {
        if (mutation.type === 'childList') {
            const grApp1532113324 = document.getElementById('ga1');
            
            const targetDiv1532113324 = grApp1532113324.querySelector('#component-13');
            const targetSpan1532113324 = Array.from(targetDiv1532113324.querySelectorAll('span')).find(span => span.textContent.includes('Height'));
            targetSpan1532113324.textContent = "Высота:";
            observer.disconnect(); // Останавливаем наблюдение после изменения
        }
    }
};
const observer1532113324 = new MutationObserver(callback1532113324);
observer1532113324.observe(targetNode1532113324, config1532113324);
</script>
      
<script>
const targetNode532113324 = document.body; // или другой родительский элемент
const config532113324 = { childList: true, subtree: true };
const callback532113324 = function(mutationsList, observer) {
    for(let mutation of mutationsList) {
        if (mutation.type === 'childList') {
            const grApp532113324 = document.getElementById('ga1');
            
            const targetDiv532113324 = grApp532113324.querySelector('#component-12');
            const targetSpan532113324 = Array.from(targetDiv532113324.querySelectorAll('span')).find(span => span.textContent.includes('Width'));
            targetSpan532113324.textContent = "Ширина:";
            observer.disconnect(); // Останавливаем наблюдение после изменения
        }
    }
};
const observer532113324 = new MutationObserver(callback532113324);
observer532113324.observe(targetNode532113324, config532113324);
</script>
      
<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('ga1');
            
            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 targetNode12 = document.body; // или другой родительский элемент
const config12 = { childList: true, subtree: true };
const callback12 = function(mutationsList, observer) {
    for(let mutation of mutationsList) {
        if (mutation.type === 'childList') {
            const grApp12 = document.getElementById('ga1');
            const targetDiv12 = grApp12.querySelector('#component-4');
            const targetSpan12 = targetDiv12.querySelector('input[data-testid="textbox"]');
            targetSpan12.placeholder = "Введите описание изображения...";
            observer.disconnect(); // Останавливаем наблюдение после изменения
        }
    }
};
const observer12 = new MutationObserver(callback12);
observer12.observe(targetNode12, config12);
</script>
      
      
<script>
const targetNode48 = document.body; // или другой родительский элемент
const config48 = { childList: true, subtree: true };
const callback48 = function(mutationsList, observer) {
    for(let mutation of mutationsList) {
        if (mutation.type === 'childList') {
            const grApp48 = document.getElementById('ga1');
            const targetDiv48 = grApp48.querySelector('#component-5');
            targetDiv48.textContent = "Сгенерировать";
            observer.disconnect(); // Останавливаем наблюдение после изменения
        }
    }
};
const observer48 = new MutationObserver(callback48);
observer48.observe(targetNode48, config48);
</script>
	</body>
</html>