Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -186,4 +186,9 @@ interface = gr.Interface(
|
|
| 186 |
# description="Upload a video to run YOLO detection with custom parameters."
|
| 187 |
)
|
| 188 |
|
| 189 |
-
interface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 186 |
# description="Upload a video to run YOLO detection with custom parameters."
|
| 187 |
)
|
| 188 |
|
| 189 |
+
interface.launch()
|
| 190 |
+
app = FastAPI()
|
| 191 |
+
app = gr.mount_gradio_app(app, interface, path="/")
|
| 192 |
+
|
| 193 |
+
if __name__ == "__main__":
|
| 194 |
+
uvicorn.run(app, host="0.0.0.0", port=8000)
|