Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import os
|
|
9 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
10 |
|
11 |
# Step 1: Download the YOLO model from Hugging Face
|
12 |
-
url = 'https://huggingface.co/Yudsky/pest-detection-yolo11/resolve/main/
|
13 |
model_path = 'best.pt'
|
14 |
|
15 |
# Check if the model file already exists, if not, download it
|
|
|
9 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
10 |
|
11 |
# Step 1: Download the YOLO model from Hugging Face
|
12 |
+
url = 'https://huggingface.co/Yudsky/pest-detection-yolo11/resolve/main/best1.pt?download=true'
|
13 |
model_path = 'best.pt'
|
14 |
|
15 |
# Check if the model file already exists, if not, download it
|