Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
import gradio as gr
|
3 |
from detect_deepsort import run_deepsort
|
4 |
from detect_strongsort import run_strongsort
|
@@ -10,9 +10,9 @@ import numpy as np
|
|
10 |
import threading
|
11 |
|
12 |
should_continue = True
|
|
|
13 |
|
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
|
|
|
1 |
+
import spaces
|
2 |
import gradio as gr
|
3 |
from detect_deepsort import run_deepsort
|
4 |
from detect_strongsort import run_strongsort
|
|
|
10 |
import threading
|
11 |
|
12 |
should_continue = True
|
13 |
+
os.environ["GRADIO_CACHE_EXAMPLES"] = "lazy"
|
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
|