Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -466,7 +466,7 @@ progress::-moz-progress-bar {
|
|
| 466 |
justify-content: center;
|
| 467 |
font-weight: bold;
|
| 468 |
position: absolute !important;
|
| 469 |
-
bottom:
|
| 470 |
left: 50% !important;
|
| 471 |
transform: translate(-50%, -50%) !important;
|
| 472 |
width: 100vw !important;
|
|
@@ -530,8 +530,13 @@ with gr.Blocks(css=css, theme=gr.themes.Default(font=[gr.themes.GoogleFont("Play
|
|
| 530 |
window.addEventListener('load', () => {
|
| 531 |
const observer = new MutationObserver(() => {
|
| 532 |
const svg = document.querySelector('svg.svelte-zyxd38');
|
| 533 |
-
|
| 534 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 535 |
const component25 = document.querySelector('#component-25');
|
| 536 |
if (!component25) return;
|
| 537 |
if (component25.querySelector('#custom-loader')) {
|
|
|
|
| 466 |
justify-content: center;
|
| 467 |
font-weight: bold;
|
| 468 |
position: absolute !important;
|
| 469 |
+
bottom: 50% !important;
|
| 470 |
left: 50% !important;
|
| 471 |
transform: translate(-50%, -50%) !important;
|
| 472 |
width: 100vw !important;
|
|
|
|
| 530 |
window.addEventListener('load', () => {
|
| 531 |
const observer = new MutationObserver(() => {
|
| 532 |
const svg = document.querySelector('svg.svelte-zyxd38');
|
| 533 |
+
// SVG銇屽瓨鍦ㄣ仐銇亜鍫村悎銆併儹銉笺儉銉笺倰闈炶〃绀恒伀銇欍倠
|
| 534 |
+
if (!svg) {
|
| 535 |
+
if (customLoader) {
|
| 536 |
+
customLoader.style.display = 'none';
|
| 537 |
+
}
|
| 538 |
+
return;
|
| 539 |
+
}
|
| 540 |
const component25 = document.querySelector('#component-25');
|
| 541 |
if (!component25) return;
|
| 542 |
if (component25.querySelector('#custom-loader')) {
|