cocoat commited on
Commit
5b2b5de
verified
1 Parent(s): f407ee6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
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: 0 !important;
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
- if (!svg) return;
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')) {