ImgGen_4 / index.html
lalashechka's picture
Update index.html
95df0c9 verified
<!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-3 {
display: none;
}
div#component-4 {
display: none;
}
div#component-5 {
display: none;
}
div#component-20 {
display: none;
}
div#component-21 {
display: none;
}
div#component-19 {
display: none;
}
#component-6 {
flex-direction: column;
}
#component-8 {
width: 100% !important;
}
button#component-8 {
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.26.0/gradio.js"
></script>
<gradio-app id='ga1' src="https://jasperai-flash-sd3.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-13');
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 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-16');
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 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-10');
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-7');
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-8');
targetDiv48.textContent = "Сгенерировать";
observer.disconnect(); // Останавливаем наблюдение после изменения
}
}
};
const observer48 = new MutationObserver(callback48);
observer48.observe(targetNode48, config48);
</script>
</body>
</html>