Corelyn commited on
Commit
ffde06e
·
verified ·
1 Parent(s): a1ec0d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -140,4 +140,5 @@ def health():
140
  app = gr.mount_gradio_app(app, demo, path="/")
141
 
142
  if __name__ == "__main__":
143
- uvicorn.run(app, host="0.0.0.0", port=int(os.environ.get("PORT", 7860)))
 
 
140
  app = gr.mount_gradio_app(app, demo, path="/")
141
 
142
  if __name__ == "__main__":
143
+ # Launch Gradio normally; HF Space handles ports
144
+ demo.launch(server_name="0.0.0.0", server_port=int(os.environ.get("PORT", 7860)))