Spaces:
Runtime error
Runtime error
Commit
·
cecca35
1
Parent(s):
593127f
Update app.py
Browse files
app.py
CHANGED
@@ -290,4 +290,5 @@ def detect(img, model):
|
|
290 |
print(f'Done. ({time.time() - t0:.3f}s)')
|
291 |
|
292 |
|
293 |
-
gr.Interface(detect,[gr.Video(format="mp4"),gr.Dropdown(choices=model_names)], gr.Video(format="mp4"), title="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()
|
|
|
|
290 |
print(f'Done. ({time.time() - t0:.3f}s)')
|
291 |
|
292 |
|
293 |
+
# gr.Interface(detect,[gr.Video(format="mp4"),gr.Dropdown(choices=model_names)], gr.Video(format="mp4"), title="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()
|
294 |
+
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()
|