tuansunday05 commited on
Commit
fcbb8b0
·
verified ·
1 Parent(s): b1328ff

In crease GPU time duration

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ import threading
12
 
13
  should_continue = True
14
 
15
- @spaces.GPU(duration=120)
16
  def yolov9_inference(model_id, img_path=None, vid_path=None, tracking_algorithm = None):
17
  global should_continue
18
  img_extensions = ['.jpg', '.jpeg', '.png', '.gif'] # Add more image extensions if needed
 
12
 
13
  should_continue = True
14
 
15
+ @spaces.GPU(duration=240)
16
  def yolov9_inference(model_id, img_path=None, vid_path=None, tracking_algorithm = None):
17
  global should_continue
18
  img_extensions = ['.jpg', '.jpeg', '.png', '.gif'] # Add more image extensions if needed