Liu Yiwen commited on
Commit
2020d16
·
1 Parent(s): 8155b80

update URL

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -331,4 +331,4 @@ with gr.Blocks() as demo:
331
  if __name__ == "__main__":
332
 
333
  app = gr.mount_gradio_app(app, demo, path="/")
334
- uvicorn.run(app, host="0.0.0.0", port=7860)
 
331
  if __name__ == "__main__":
332
 
333
  app = gr.mount_gradio_app(app, demo, path="/")
334
+ uvicorn.run(app, host="0.0.0.0", port=int(os.getenv("PORT", 7860)))