Plana-Archive commited on
Commit
f596609
·
verified ·
1 Parent(s): c4fce1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -105,9 +105,6 @@ css = """
105
  .jp-btn { background: #f8fafc !important; border: 1px solid #cbd5e1 !important; color: #475569 !important; font-weight: 700 !important; border-radius: 10px !important; margin-bottom: 10px; font-size: 12px !important; width: 100%; }
106
  .gen-btn { background: #1299ff !important; color: white !important; font-weight: 700 !important; border-radius: 12px !important; height: 45px !important; width: 100%; border: none !important; cursor: pointer; }
107
  .credit-footer { margin-top: 25px; padding: 15px; background: white; border-radius: 12px; text-align: center; border-bottom: 4px solid #1299ff; color: #94a3b8; font-weight: 700; font-size: 12px; letter-spacing: 2px; }
108
-
109
- /* Animasi Loading Gradio */
110
- #loading-overlay { background-color: rgba(18, 153, 255, 0.9) !important; }
111
  """
112
 
113
  # --- 7. GRADIO INTERFACE ---
@@ -174,9 +171,9 @@ with gr.Blocks(title="Project Sekai TTS", css=css) as app:
174
  gr.HTML("""<div class="credit-footer">🥒 CREATED BY MUTSUMI 🥒</div>""")
175
 
176
  if __name__ == "__main__":
177
- # app.queue() mengaktifkan generator status dan loading bar
178
- app.queue(default_concurrency_limit=10).launch(
179
  server_name="0.0.0.0",
180
  server_port=7860,
181
- show_error=True
182
  )
 
105
  .jp-btn { background: #f8fafc !important; border: 1px solid #cbd5e1 !important; color: #475569 !important; font-weight: 700 !important; border-radius: 10px !important; margin-bottom: 10px; font-size: 12px !important; width: 100%; }
106
  .gen-btn { background: #1299ff !important; color: white !important; font-weight: 700 !important; border-radius: 12px !important; height: 45px !important; width: 100%; border: none !important; cursor: pointer; }
107
  .credit-footer { margin-top: 25px; padding: 15px; background: white; border-radius: 12px; text-align: center; border-bottom: 4px solid #1299ff; color: #94a3b8; font-weight: 700; font-size: 12px; letter-spacing: 2px; }
 
 
 
108
  """
109
 
110
  # --- 7. GRADIO INTERFACE ---
 
171
  gr.HTML("""<div class="credit-footer">🥒 CREATED BY MUTSUMI 🥒</div>""")
172
 
173
  if __name__ == "__main__":
174
+ # PERUBAHAN UTAMA: Matikan ssr_mode agar loading screen muncul
175
+ app.launch(
176
  server_name="0.0.0.0",
177
  server_port=7860,
178
+ ssr_mode=False
179
  )