Spaces:
Running
Running
lalashechka
commited on
Commit
•
febcaf7
1
Parent(s):
8e9616d
Update index.html
Browse files- index.html +20 -1
index.html
CHANGED
@@ -35,6 +35,25 @@ button#component-5 {
|
|
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 };
|
@@ -44,7 +63,7 @@ const callback152 = function(mutationsList, observer) {
|
|
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 |
}
|
|
|
35 |
|
36 |
<gradio-app id='ga1' src="https://prodia-fast-sd3-medium.hf.space"></gradio-app>
|
37 |
|
38 |
+
<script>
|
39 |
+
const targetNode11332 = document.body; // или другой родительский элемент
|
40 |
+
const config11332 = { childList: true, subtree: true };
|
41 |
+
const callback11332 = function(mutationsList, observer) {
|
42 |
+
for(let mutation of mutationsList) {
|
43 |
+
if (mutation.type === 'childList') {
|
44 |
+
const grApp11332 = document.getElementById('ga1');
|
45 |
+
|
46 |
+
const targetDiv11332 = grApp11332.querySelector('#component-10');
|
47 |
+
const targetSpan11332 = Array.from(targetDiv11332.querySelectorAll('span')).find(span => span.textContent.includes('Randomize seed'));
|
48 |
+
targetSpan11332.textContent = "Случайный seed";
|
49 |
+
observer.disconnect(); // Останавливаем наблюдение после изменения
|
50 |
+
}
|
51 |
+
}
|
52 |
+
};
|
53 |
+
const observer11332 = new MutationObserver(callback11332);
|
54 |
+
observer11332.observe(targetNode11332, config11332);
|
55 |
+
</script>
|
56 |
+
|
57 |
<script>
|
58 |
const targetNode152 = document.body; // или другой родительский элемент
|
59 |
const config152 = { childList: true, subtree: true };
|
|
|
63 |
const grApp152 = document.getElementById('ga1');
|
64 |
const targetDiv152 = grApp152.querySelector('#component-8');
|
65 |
const targetSpan152 = targetDiv152.querySelector('input[data-testid="textbox"]');
|
66 |
+
targetSpan152.placeholder = "Введите, чего не должно быть на изображении...";
|
67 |
observer.disconnect(); // Останавливаем наблюдение после изменения
|
68 |
}
|
69 |
}
|