roundb commited on
Commit
bf4dd6d
·
verified ·
1 Parent(s): 7cdcbb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -324,7 +324,11 @@ with gr.Blocks(title=APP_TITLE) as demo:
324
 
325
 
326
  if __name__ == "__main__":
327
- # Gradio 6+: css e theme no launch
328
- demo.launch(theme=gr.themes.Soft(), css=custom_css)
 
 
 
 
329
 
330
 
 
324
 
325
 
326
  if __name__ == "__main__":
327
+ demo.queue() # recomendado para streaming/requests no Spaces
328
+ demo.launch(
329
+ theme=gr.themes.Soft(),
330
+ css=custom_css,
331
+ ssr_mode=False, # DESLIGA SSR experimental (evita esse erro do asyncio)
332
+ )
333
 
334