Spaces:
Running
Running
prodya-dev commited on
Commit ·
e105392
1
Parent(s): e5d4029
fix: remove server_name override + show_api=False for HF Space compat
Browse files
app.py
CHANGED
|
@@ -348,6 +348,6 @@ demo.queue(max_size=10)
|
|
| 348 |
if __name__ == "__main__":
|
| 349 |
log.info(f"Starting Morphaze Space v{VERSION}")
|
| 350 |
|
| 351 |
-
# HF Spaces
|
| 352 |
-
#
|
| 353 |
-
demo.launch(
|
|
|
|
| 348 |
if __name__ == "__main__":
|
| 349 |
log.info(f"Starting Morphaze Space v{VERSION}")
|
| 350 |
|
| 351 |
+
# HF Spaces sets SERVER_NAME/PORT via env vars — don't override server_name.
|
| 352 |
+
# show_api=False avoids a gradio_client JSON schema bug with gradio==4.44.0.
|
| 353 |
+
demo.launch(show_api=False)
|