Myogyi commited on
Commit
a812837
·
verified ·
1 Parent(s): a28554b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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)