Isaac Quarenta commited on
Commit
5cd7cf2
·
1 Parent(s): 476d7ec

fix(app): desativar SSR (Gradio 6) - proxy Node interceptava /api/* e servia HTML

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1525,7 +1525,7 @@ if __name__ == "__main__":
1525
  "prevent_thread_lock": True,
1526
  }
1527
  if _GRADIO_MAJOR >= 6:
1528
- _launch_kwargs.update(theme=gr.themes.Soft(), css=CSS)
1529
  _launch_result = demo.launch(**_launch_kwargs)
1530
  _fastapi_app = (
1531
  _launch_result[0]
 
1525
  "prevent_thread_lock": True,
1526
  }
1527
  if _GRADIO_MAJOR >= 6:
1528
+ _launch_kwargs.update(theme=gr.themes.Soft(), css=CSS, ssr_mode=False)
1529
  _launch_result = demo.launch(**_launch_kwargs)
1530
  _fastapi_app = (
1531
  _launch_result[0]