Spaces:
Runtime error
Runtime error
Commit ·
9ff3f48
1
Parent(s): 23a4bb3
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
| 1 |
from ultralytics import YOLO
|
|
|
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
| 1 |
from ultralytics import YOLO
|
| 2 |
+
from huggingface_hub import hf_hub_download
|
| 3 |
|
| 4 |
+
model_path = hf_hub_download("Axpo/yolov8x-with-insulators", "yolov8x-with-insulators.pt", use_auth_token=os.environ["TOKEN"])
|
| 5 |
+
|
| 6 |
+
model = YOLO(model_path)
|