prodya-dev commited on
Commit
e105392
·
1 Parent(s): e5d4029

fix: remove server_name override + show_api=False for HF Space compat

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 imports app.py as a module (not __main__), so launch must be
352
- # at module level — not guarded by if __name__ == "__main__"
353
- demo.launch(server_name="0.0.0.0")
 
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)