Update utils/model_loader.py
Browse files- utils/model_loader.py +3 -1
utils/model_loader.py
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
|
|
| 1 |
from huggingface_hub import hf_hub_download
|
| 2 |
|
| 3 |
def load_model():
|
|
|
|
| 4 |
model_path = hf_hub_download(
|
| 5 |
-
repo_id="
|
| 6 |
filename="best.pt",
|
| 7 |
revision="main"
|
| 8 |
)
|
|
|
|
| 1 |
+
from ultralytics import YOLO
|
| 2 |
from huggingface_hub import hf_hub_download
|
| 3 |
|
| 4 |
def load_model():
|
| 5 |
+
# Download model from Hugging Face Hub (if hosted)
|
| 6 |
model_path = hf_hub_download(
|
| 7 |
+
repo_id="MobvxtR/mbModel",
|
| 8 |
filename="best.pt",
|
| 9 |
revision="main"
|
| 10 |
)
|