Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -141,7 +141,6 @@ app.add_middleware(
|
|
| 141 |
)
|
| 142 |
|
| 143 |
def get_root_url(request: Request, route_path: str, root_path: str | None):
|
| 144 |
-
print(root_path)
|
| 145 |
return root_path
|
| 146 |
gr.route_utils.get_root_url = get_root_url
|
| 147 |
# gr.mount_gradio_app(app, demo, path="/demo", root_path="/demo")
|
|
@@ -313,7 +312,7 @@ async def segmentation(request: Request):
|
|
| 313 |
return {"error": str(e)}
|
| 314 |
|
| 315 |
# Mount the Gradio app
|
| 316 |
-
app = gr.mount_gradio_app(app, demo, path="/"
|
| 317 |
|
| 318 |
if __name__ == "__main__":
|
| 319 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
|
| 141 |
)
|
| 142 |
|
| 143 |
def get_root_url(request: Request, route_path: str, root_path: str | None):
|
|
|
|
| 144 |
return root_path
|
| 145 |
gr.route_utils.get_root_url = get_root_url
|
| 146 |
# gr.mount_gradio_app(app, demo, path="/demo", root_path="/demo")
|
|
|
|
| 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)
|