Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,6 +34,7 @@ def yolov9_inference(model_id, image_size, conf_threshold, iou_threshold, img_pa
|
|
34 |
|
35 |
return output_image, output_video, output_path
|
36 |
|
|
|
37 |
def inference(model_id, image_size, conf_threshold, iou_threshold, img_path=None, vid_path=None):
|
38 |
global should_continue
|
39 |
should_continue = True
|
|
|
34 |
|
35 |
return output_image, output_video, output_path
|
36 |
|
37 |
+
@spaces.GPU(duration=60)
|
38 |
def inference(model_id, image_size, conf_threshold, iou_threshold, img_path=None, vid_path=None):
|
39 |
global should_continue
|
40 |
should_continue = True
|