Spaces:
Running
Running
Commit
·
e204259
1
Parent(s):
e429a4e
Disable Gradio API schema and SSR to fix HF startup crash
Browse files
app.py
CHANGED
|
@@ -123,4 +123,6 @@ if __name__ == "__main__":
|
|
| 123 |
server_name="0.0.0.0",
|
| 124 |
server_port=int(os.environ.get("PORT", 7860)),
|
| 125 |
share=False, # Spaces provides its own public URL; share=True not supported there
|
|
|
|
|
|
|
| 126 |
)
|
|
|
|
| 123 |
server_name="0.0.0.0",
|
| 124 |
server_port=int(os.environ.get("PORT", 7860)),
|
| 125 |
share=False, # Spaces provides its own public URL; share=True not supported there
|
| 126 |
+
show_api=False, # avoid schema generation that can crash on HF
|
| 127 |
+
ssr=False, # disable SSR to reduce startup edge cases on Spaces
|
| 128 |
)
|