Spaces:
Runtime error
Runtime error
Commit
·
ea1f711
1
Parent(s):
52274d3
Update app.py
Browse files
app.py
CHANGED
@@ -286,7 +286,12 @@ def detect(img, model):
|
|
286 |
|
287 |
print(f'Done. ({time.time() - t0:.3f}s)')
|
288 |
return vid_writer
|
289 |
-
|
290 |
|
291 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
# gr.Interface(detect,[gr.Image(type="pil"),gr.Dropdown(choices=model_names)], gr.Image(type="pil"),title="Yolov7",examples=[["horses.jpeg", "yolov7"]],description="demo for <a href='https://github.com/WongKinYiu/yolov7' style='text-decoration: underline' target='_blank'>WongKinYiu/yolov7</a> Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors").launch()
|
|
|
286 |
|
287 |
print(f'Done. ({time.time() - t0:.3f}s)')
|
288 |
return vid_writer
|
|
|
289 |
|
290 |
+
|
291 |
+
|
292 |
+
desc = "demo for <a href='https://github.com/WongKinYiu/yolov7' style='text-decoration: underline' target='_blank'>WongKinYiu/yolov7</a> Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors"
|
293 |
+
gr.Interface(detect,
|
294 |
+
inputs = [gr.Video(format="mp4")],
|
295 |
+
outputs = gr.Video(format="mp4"),
|
296 |
+
title="Yolov7",description=desc).launch(inline=False, debug=True)
|
297 |
# gr.Interface(detect,[gr.Image(type="pil"),gr.Dropdown(choices=model_names)], gr.Image(type="pil"),title="Yolov7",examples=[["horses.jpeg", "yolov7"]],description="demo for <a href='https://github.com/WongKinYiu/yolov7' style='text-decoration: underline' target='_blank'>WongKinYiu/yolov7</a> Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors").launch()
|