Spaces:
Running
Running
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width" /> | |
<title>My static Space</title> | |
<style> | |
div#component-38 { | |
display: none; | |
} | |
div#component-15 { | |
display: none; | |
} | |
button#component-11 { | |
display: none; | |
} | |
button#component-40-button { | |
display: none; | |
} | |
button#component-41-button { | |
display: none; | |
} | |
button#component-42-button { | |
display: none; | |
} | |
button#component-12 { | |
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.42.0/gradio.js" | |
></script> | |
<gradio-app id='ga33' src="https://not-lain-background-removal.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-12'); | |
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-2'); | |
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-0'); | |
const targetSpan4135 = targetDiv4135.querySelector('label[data-testid="block-label"]'); | |
targetSpan4135.textContent = "Результат:"; | |
observer.disconnect(); // Останавливаем наблюдение после изменения | |
} | |
} | |
}; | |
const observer4135 = new MutationObserver(callback4135); | |
observer4135.observe(targetNode4135, config4135); | |
</script> | |
</body> | |
</html> | |