StevenChen16 commited on
Commit
fcd27de
·
verified ·
1 Parent(s): fb76a25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -31,6 +31,7 @@ category_dict = {
31
  }
32
 
33
 
 
34
  def yolov10_inference(image, video, model_id, image_size, conf_threshold, iou_threshold):
35
  model_path = download_models(model_id)
36
  model = YOLOv10.from_pretrained(model_path)
 
31
  }
32
 
33
 
34
+ @spaces.GPU(duration=1000)
35
  def yolov10_inference(image, video, model_id, image_size, conf_threshold, iou_threshold):
36
  model_path = download_models(model_id)
37
  model = YOLOv10.from_pretrained(model_path)