LiuZichen commited on
Commit
e3e0469
·
verified ·
1 Parent(s): 8e80fc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -313,5 +313,8 @@ async def segmentation(request: Request):
313
  print(f"Error in segmentation: {e}")
314
  return {"error": str(e)}
315
 
 
 
 
316
  if __name__ == "__main__":
317
  uvicorn.run(app, host="0.0.0.0", port=7860)
 
313
  print(f"Error in segmentation: {e}")
314
  return {"error": str(e)}
315
 
316
+ # Mount the Gradio app
317
+ app = gr.mount_gradio_app(app, demo, path="/")
318
+
319
  if __name__ == "__main__":
320
  uvicorn.run(app, host="0.0.0.0", port=7860)