Aditya9790 commited on
Commit
ea1f711
·
1 Parent(s): 52274d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
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
- gr.Interface(detect,inputs = [gr.Video(format="mp4")], outputs = 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()
 
 
 
 
 
 
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()