Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def yolov9_inference(img_path, model_id, image_size, conf_threshold, iou_thresho
|
|
41 |
|
42 |
# Load the model
|
43 |
model_path = attempt_download_from_hub(model_id)
|
44 |
-
model = yolov9.load(model_path, device="
|
45 |
|
46 |
# Set model parameters
|
47 |
model.conf = conf_threshold
|
|
|
41 |
|
42 |
# Load the model
|
43 |
model_path = attempt_download_from_hub(model_id)
|
44 |
+
model = yolov9.load(model_path, device="cpu")
|
45 |
|
46 |
# Set model parameters
|
47 |
model.conf = conf_threshold
|