Spaces:
Sleeping
Sleeping
Update webui/app.py
Browse files- 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 |
-
|
|
|
|
| 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
|