Luongdzung commited on
Commit
7eb69d3
·
1 Parent(s): 25788f1

stop caching examples for n times

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -404,10 +404,12 @@ def detect_vid(vid,model):
404
  img_interface = gr.Interface(detect_img,
405
  [gr.Image(type="pil"),gr.Dropdown(choices=models_list)],
406
  gr.Image(type="pil"),title="Yolov7" ,examples=[["cars.jpg", "yolov7.pt"]],
 
407
  description="Yolov7 for image")
408
  vid_interface = gr.Interface(detect_vid,
409
  [gr.Video(),gr.Dropdown(choices=models_list)],
410
  gr.Video(format='mp4'),title="Yolov7",examples=[["messi.mp4", "yolov7.pt"]],
 
411
  description="Yolov7 for video")
412
  final_interface = gr.TabbedInterface([img_interface, vid_interface],
413
  tab_names=['Image Inference', 'Video Inference'])
 
404
  img_interface = gr.Interface(detect_img,
405
  [gr.Image(type="pil"),gr.Dropdown(choices=models_list)],
406
  gr.Image(type="pil"),title="Yolov7" ,examples=[["cars.jpg", "yolov7.pt"]],
407
+ cache_examples=False,
408
  description="Yolov7 for image")
409
  vid_interface = gr.Interface(detect_vid,
410
  [gr.Video(),gr.Dropdown(choices=models_list)],
411
  gr.Video(format='mp4'),title="Yolov7",examples=[["messi.mp4", "yolov7.pt"]],
412
+ cache_examples=False,
413
  description="Yolov7 for video")
414
  final_interface = gr.TabbedInterface([img_interface, vid_interface],
415
  tab_names=['Image Inference', 'Video Inference'])