Spaces:
Runtime error
Runtime error
praysimanjuntak
commited on
Commit
•
8caebbe
1
Parent(s):
56893af
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def yolov9_inference(img_path, conf_threshold, iou_threshold):
|
|
18 |
|
19 |
# Load the model
|
20 |
model_path = "yolov9-plant.pt" # model
|
21 |
-
model = yolov9.load(model_path, device="cuda")
|
22 |
|
23 |
# Set model parameters
|
24 |
model.conf = conf_threshold
|
|
|
18 |
|
19 |
# Load the model
|
20 |
model_path = "yolov9-plant.pt" # model
|
21 |
+
model = yolov9.load(model_path, device="cuda:0")
|
22 |
|
23 |
# Set model parameters
|
24 |
model.conf = conf_threshold
|