Spaces:
Running
Running
Update app.py
Browse files
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)
|