Spaces:
Running
Running
lalashechka
commited on
Commit
•
8e9616d
1
Parent(s):
2d6972c
Update index.html
Browse files- index.html +132 -2
index.html
CHANGED
@@ -15,7 +15,7 @@ div#component-20 {
|
|
15 |
flex-direction: column;
|
16 |
}
|
17 |
#component-5 {
|
18 |
-
width: 100
|
19 |
}
|
20 |
button#component-5 {
|
21 |
margin-bottom: 20px;
|
@@ -33,7 +33,137 @@ button#component-5 {
|
|
33 |
src="https://gradio.s3-us-west-2.amazonaws.com/4.37.2/gradio.js"
|
34 |
></script>
|
35 |
|
36 |
-
<gradio-app src="https://prodia-fast-sd3-medium.hf.space"></gradio-app>
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
</body>
|
39 |
</html>
|
|
|
15 |
flex-direction: column;
|
16 |
}
|
17 |
#component-5 {
|
18 |
+
width: 100% !important;
|
19 |
}
|
20 |
button#component-5 {
|
21 |
margin-bottom: 20px;
|
|
|
33 |
src="https://gradio.s3-us-west-2.amazonaws.com/4.37.2/gradio.js"
|
34 |
></script>
|
35 |
|
36 |
+
<gradio-app id='ga1' src="https://prodia-fast-sd3-medium.hf.space"></gradio-app>
|
37 |
|
38 |
+
<script>
|
39 |
+
const targetNode152 = document.body; // или другой родительский элемент
|
40 |
+
const config152 = { childList: true, subtree: true };
|
41 |
+
const callback152 = function(mutationsList, observer) {
|
42 |
+
for(let mutation of mutationsList) {
|
43 |
+
if (mutation.type === 'childList') {
|
44 |
+
const grApp152 = document.getElementById('ga1');
|
45 |
+
const targetDiv152 = grApp152.querySelector('#component-8');
|
46 |
+
const targetSpan152 = targetDiv152.querySelector('input[data-testid="textbox"]');
|
47 |
+
targetSpan152.placeholder = "Введите описание изображения...";
|
48 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
49 |
+
}
|
50 |
+
}
|
51 |
+
};
|
52 |
+
const observer152 = new MutationObserver(callback152);
|
53 |
+
observer152.observe(targetNode152, config152);
|
54 |
+
</script>
|
55 |
+
|
56 |
+
|
57 |
+
<script>
|
58 |
+
const targetNode61532113324 = document.body; // или другой родительский элемент
|
59 |
+
const config61532113324 = { childList: true, subtree: true };
|
60 |
+
const callback61532113324 = function(mutationsList, observer) {
|
61 |
+
for(let mutation of mutationsList) {
|
62 |
+
if (mutation.type === 'childList') {
|
63 |
+
const grApp61532113324 = document.getElementById('ga1');
|
64 |
+
|
65 |
+
const targetDiv61532113324 = grApp61532113324.querySelector('#component-17');
|
66 |
+
const targetSpan61532113324 = Array.from(targetDiv61532113324.querySelectorAll('span')).find(span => span.textContent.includes('Number of inference steps'));
|
67 |
+
targetSpan61532113324.textContent = "Число шагов генерации:";
|
68 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
69 |
+
}
|
70 |
+
}
|
71 |
+
};
|
72 |
+
const observer61532113324 = new MutationObserver(callback61532113324);
|
73 |
+
observer61532113324.observe(targetNode61532113324, config61532113324);
|
74 |
+
</script>
|
75 |
+
|
76 |
+
<script>
|
77 |
+
const targetNode1532113324 = document.body; // или другой родительский элемент
|
78 |
+
const config1532113324 = { childList: true, subtree: true };
|
79 |
+
const callback1532113324 = function(mutationsList, observer) {
|
80 |
+
for(let mutation of mutationsList) {
|
81 |
+
if (mutation.type === 'childList') {
|
82 |
+
const grApp1532113324 = document.getElementById('ga1');
|
83 |
+
|
84 |
+
const targetDiv1532113324 = grApp1532113324.querySelector('#component-13');
|
85 |
+
const targetSpan1532113324 = Array.from(targetDiv1532113324.querySelectorAll('span')).find(span => span.textContent.includes('Height'));
|
86 |
+
targetSpan1532113324.textContent = "Высота:";
|
87 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
88 |
+
}
|
89 |
+
}
|
90 |
+
};
|
91 |
+
const observer1532113324 = new MutationObserver(callback1532113324);
|
92 |
+
observer1532113324.observe(targetNode1532113324, config1532113324);
|
93 |
+
</script>
|
94 |
+
|
95 |
+
<script>
|
96 |
+
const targetNode532113324 = document.body; // или другой родительский элемент
|
97 |
+
const config532113324 = { childList: true, subtree: true };
|
98 |
+
const callback532113324 = function(mutationsList, observer) {
|
99 |
+
for(let mutation of mutationsList) {
|
100 |
+
if (mutation.type === 'childList') {
|
101 |
+
const grApp532113324 = document.getElementById('ga1');
|
102 |
+
|
103 |
+
const targetDiv532113324 = grApp532113324.querySelector('#component-12');
|
104 |
+
const targetSpan532113324 = Array.from(targetDiv532113324.querySelectorAll('span')).find(span => span.textContent.includes('Width'));
|
105 |
+
targetSpan532113324.textContent = "Ширина:";
|
106 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
107 |
+
}
|
108 |
+
}
|
109 |
+
};
|
110 |
+
const observer532113324 = new MutationObserver(callback532113324);
|
111 |
+
observer532113324.observe(targetNode532113324, config532113324);
|
112 |
+
</script>
|
113 |
+
|
114 |
+
<script>
|
115 |
+
const targetNode3 = document.body; // или другой родительский элемент
|
116 |
+
const config3 = { childList: true, subtree: true };
|
117 |
+
const callback3 = function(mutationsList, observer) {
|
118 |
+
for(let mutation of mutationsList) {
|
119 |
+
if (mutation.type === 'childList') {
|
120 |
+
const grApp3 = document.getElementById('ga1');
|
121 |
+
|
122 |
+
const targetDiv3 = grApp3.querySelector('#component-7');
|
123 |
+
const targetSpan3 = Array.from(targetDiv3.querySelectorAll('span')).find(span => span.textContent.includes('Advanced Settings'));
|
124 |
+
targetSpan3.textContent = "Расширенные настройки";
|
125 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
126 |
+
}
|
127 |
+
}
|
128 |
+
};
|
129 |
+
const observer3 = new MutationObserver(callback3);
|
130 |
+
observer3.observe(targetNode3, config3);
|
131 |
+
</script>
|
132 |
+
|
133 |
+
<script>
|
134 |
+
const targetNode12 = document.body; // или другой родительский элемент
|
135 |
+
const config12 = { childList: true, subtree: true };
|
136 |
+
const callback12 = function(mutationsList, observer) {
|
137 |
+
for(let mutation of mutationsList) {
|
138 |
+
if (mutation.type === 'childList') {
|
139 |
+
const grApp12 = document.getElementById('ga1');
|
140 |
+
const targetDiv12 = grApp12.querySelector('#component-4');
|
141 |
+
const targetSpan12 = targetDiv12.querySelector('input[data-testid="textbox"]');
|
142 |
+
targetSpan12.placeholder = "Введите описание изображения...";
|
143 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
144 |
+
}
|
145 |
+
}
|
146 |
+
};
|
147 |
+
const observer12 = new MutationObserver(callback12);
|
148 |
+
observer12.observe(targetNode12, config12);
|
149 |
+
</script>
|
150 |
+
|
151 |
+
|
152 |
+
<script>
|
153 |
+
const targetNode48 = document.body; // или другой родительский элемент
|
154 |
+
const config48 = { childList: true, subtree: true };
|
155 |
+
const callback48 = function(mutationsList, observer) {
|
156 |
+
for(let mutation of mutationsList) {
|
157 |
+
if (mutation.type === 'childList') {
|
158 |
+
const grApp48 = document.getElementById('ga1');
|
159 |
+
const targetDiv48 = grApp48.querySelector('#component-5');
|
160 |
+
targetDiv48.textContent = "Сгенерировать";
|
161 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
162 |
+
}
|
163 |
+
}
|
164 |
+
};
|
165 |
+
const observer48 = new MutationObserver(callback48);
|
166 |
+
observer48.observe(targetNode48, config48);
|
167 |
+
</script>
|
168 |
</body>
|
169 |
</html>
|