Luigi commited on
Commit
a32a9b3
·
1 Parent(s): f07e38a

add a video example

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -184,13 +184,17 @@ def main():
184
  ["https://images.pexels.com/photos/1858175/pexels-photo-1858175.jpeg?auto=compress&cs=tinysrgb&h=614&w=614", None, "rtmo-s_coco_retrainable", None, 0.1, 0.65],
185
  ["https://images.pexels.com/photos/3779706/pexels-photo-3779706.jpeg?auto=compress&cs=tinysrgb&h=614&w=614", None, "rtmo-t_8xb32-600e_body7", None, 0.1, 0.65],
186
  ["https://images.pexels.com/photos/220453/pexels-photo-220453.jpeg?auto=compress&cs=tinysrgb&h=614&w=614", None, "rtmo-s_8xb32-600e_coco", None, 0.1, 0.65],
 
 
 
 
187
  ],
188
  inputs=[img_input, video_input, remote_dd, upload_ckpt, bbox_thr, nms_thr],
189
  outputs=[output_img, output_video, active_tb],
190
  fn=predict,
191
  cache_examples=False,
192
  label="Examples",
193
- examples_per_page=3
194
  )
195
 
196
  run_btn.click(
 
184
  ["https://images.pexels.com/photos/1858175/pexels-photo-1858175.jpeg?auto=compress&cs=tinysrgb&h=614&w=614", None, "rtmo-s_coco_retrainable", None, 0.1, 0.65],
185
  ["https://images.pexels.com/photos/3779706/pexels-photo-3779706.jpeg?auto=compress&cs=tinysrgb&h=614&w=614", None, "rtmo-t_8xb32-600e_body7", None, 0.1, 0.65],
186
  ["https://images.pexels.com/photos/220453/pexels-photo-220453.jpeg?auto=compress&cs=tinysrgb&h=614&w=614", None, "rtmo-s_8xb32-600e_coco", None, 0.1, 0.65],
187
+ # 4th example: public-domain Rip Van Winkle (1896)
188
+ [None,
189
+ "https://archive.org/download/fred-otts-sneeze/Fred%20Ott%20Sneeze%201894%20GG%20Restore.mp4",
190
+ "rtmo-s_coco_retrainable", None, 0.1, 0.65],
191
  ],
192
  inputs=[img_input, video_input, remote_dd, upload_ckpt, bbox_thr, nms_thr],
193
  outputs=[output_img, output_video, active_tb],
194
  fn=predict,
195
  cache_examples=False,
196
  label="Examples",
197
+ examples_per_page=4
198
  )
199
 
200
  run_btn.click(