RafaG commited on
Commit
4bfc5cf
·
verified ·
1 Parent(s): 5cf6c0a

Update webui/app.py

Browse files
Files changed (1) hide show
  1. webui/app.py +2 -1
webui/app.py CHANGED
@@ -808,7 +808,8 @@ if __name__ == "__main__":
808
 
809
  # Mount Gradio ON TOP of FastAPI
810
  # path="/" means Gradio handles the root
811
- app = gr.mount_gradio_app(app, demo.queue(), path="/", allowed_paths=allowed_dirs)
 
812
 
813
  # Run with Uvicorn
814
  # This gives Uvicorn control over the main thread and Loop, avoiding blocking/GC issues
 
808
 
809
  # Mount Gradio ON TOP of FastAPI
810
  # path="/" means Gradio handles the root
811
+ # Disable SSR to prevent Node proxying issues on HF Spaces (port 7861 errors)
812
+ app = gr.mount_gradio_app(app, demo.queue(), path="/", allowed_paths=allowed_dirs, ssr_mode=False)
813
 
814
  # Run with Uvicorn
815
  # This gives Uvicorn control over the main thread and Loop, avoiding blocking/GC issues