LiuZichen commited on
Commit
fed7c5a
·
verified ·
1 Parent(s): 15f0195

Update app.py

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