Spaces:
Running
Running
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width" /> | |
<title>My static Space</title> | |
<style> | |
div#component-1 { | |
display: none; | |
} | |
div#component-13 { | |
display: none; | |
} | |
div#component-11 { | |
display: none; | |
} | |
div#component-12 { | |
display: none; | |
} | |
button#component-6 { | |
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='ga33' src="https://ssboost-tile-upscaler.hf.space"></gradio-app> | |
<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-6'); | |
targetDiv8.textContent = "Улучшить фото"; | |
observer.disconnect(); // Останавливаем наблюдение после изменения | |
} | |
} | |
}; | |
const observer8 = new MutationObserver(callback8); | |
observer8.observe(targetNode8, config8); | |
</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-4'); | |
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 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-10'); | |
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 targetNode135 = document.body; // или другой родительский элемент | |
const config135 = { childList: true, subtree: true }; | |
const callback135 = function(mutationsList, observer) { | |
for(let mutation of mutationsList) { | |
if (mutation.type === 'childList') { | |
const grApp132 = document.getElementById('ga33'); | |
const targetDiv135 = grApp132.querySelector('#component-9'); | |
const targetSpan135 = targetDiv135.querySelector('label[data-testid="block-label"]'); | |
targetSpan135.textContent = "Результат №1:"; | |
observer.disconnect(); // Останавливаем наблюдение после изменения | |
} | |
} | |
}; | |
const observer135 = new MutationObserver(callback135); | |
observer135.observe(targetNode135, config135); | |
</script> | |
<script> | |
const targetNode113324 = document.body; // или другой родительский элемент | |
const config113324 = { childList: true, subtree: true }; | |
const callback113324 = function(mutationsList, observer) { | |
for(let mutation of mutationsList) { | |
if (mutation.type === 'childList') { | |
const grApp113324 = document.getElementById('ga33'); | |
const targetDiv113324 = grApp113324.querySelector('#component-5'); | |
const targetSpan113324 = Array.from(targetDiv113324.querySelectorAll('span')).find(span => span.textContent.includes('상')); | |
targetSpan113324.textContent = "Сильный"; | |
observer.disconnect(); // Останавливаем наблюдение после изменения | |
} | |
} | |
}; | |
const observer113324 = new MutationObserver(callback113324); | |
observer113324.observe(targetNode113324, config113324); | |
</script> | |
<script> | |
const targetNode32113324 = document.body; // или другой родительский элемент | |
const config32113324 = { childList: true, subtree: true }; | |
const callback32113324 = function(mutationsList, observer) { | |
for(let mutation of mutationsList) { | |
if (mutation.type === 'childList') { | |
const grApp32113324 = document.getElementById('ga33'); | |
const targetDiv32113324 = grApp32113324.querySelector('#component-5'); | |
const targetSpan32113324 = Array.from(targetDiv32113324.querySelectorAll('span')).find(span => span.textContent.includes('중')); | |
targetSpan32113324.textContent = "Средний"; | |
observer.disconnect(); // Останавливаем наблюдение после изменения | |
} | |
} | |
}; | |
const observer32113324 = new MutationObserver(callback32113324); | |
observer32113324.observe(targetNode32113324, config32113324); | |
</script> | |
<script> | |
const targetNode2113324 = document.body; // или другой родительский элемент | |
const config2113324 = { childList: true, subtree: true }; | |
const callback2113324 = function(mutationsList, observer) { | |
for(let mutation of mutationsList) { | |
if (mutation.type === 'childList') { | |
const grApp2113324 = document.getElementById('ga33'); | |
const targetDiv2113324 = grApp2113324.querySelector('#component-5'); | |
const targetSpan2113324 = Array.from(targetDiv2113324.querySelectorAll('span')).find(span => span.textContent.includes('하')); | |
targetSpan2113324.textContent = "Слабый"; | |
observer.disconnect(); // Останавливаем наблюдение после изменения | |
} | |
} | |
}; | |
const observer2113324 = new MutationObserver(callback2113324); | |
observer2113324.observe(targetNode2113324, config2113324); | |
</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-5'); | |
const targetSpan141 = targetDiv141.querySelector('span[data-testid="block-info"]'); | |
targetSpan141.textContent = "Эффект улучшения:"; | |
observer.disconnect(); // Останавливаем наблюдение после изменения | |
} | |
} | |
}; | |
const observer141 = new MutationObserver(callback141); | |
observer141.observe(targetNode141, config141); | |
</script> | |
</body> | |
</html> | |