Manmay Nakhashi commited on
Commit
4245361
·
1 Parent(s): 550cc4a

Disable SSR + analytics + auto-API for ZeroGPU compat

Browse files

ssr_mode=False: gradio 5's server-side rendering races with ZeroGPU's
GPU-fork lifecycle. show_api=False: skip JSON-schema introspection
(source of the earlier bool/dict crashes). analytics=False: avoid
network calls during boot.

Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -123,6 +123,7 @@ with gr.Blocks(
123
  title="DramaBox — Expressive TTS",
124
  theme=gr.themes.Default(),
125
  css=".prompt-box textarea { font-size: 14px !important; line-height: 1.5 !important; }",
 
126
  ) as app:
127
  gr.Markdown("# 🎭 DramaBox — Expressive TTS with Voice Cloning")
128
  gr.Markdown(
@@ -191,4 +192,6 @@ if __name__ == "__main__":
191
  app.queue(max_size=10).launch(
192
  server_name="0.0.0.0", server_port=port,
193
  share=os.environ.get("GRADIO_SHARE", "0") == "1",
 
 
194
  )
 
123
  title="DramaBox — Expressive TTS",
124
  theme=gr.themes.Default(),
125
  css=".prompt-box textarea { font-size: 14px !important; line-height: 1.5 !important; }",
126
+ analytics_enabled=False,
127
  ) as app:
128
  gr.Markdown("# 🎭 DramaBox — Expressive TTS with Voice Cloning")
129
  gr.Markdown(
 
192
  app.queue(max_size=10).launch(
193
  server_name="0.0.0.0", server_port=port,
194
  share=os.environ.get("GRADIO_SHARE", "0") == "1",
195
+ ssr_mode=False, # Gradio 5 SSR + ZeroGPU fork has known race conditions
196
+ show_api=False, # don't auto-derive Python schemas (caused bool-iter / dict-cache crashes)
197
  )