Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def load_model(repo_id):
|
|
| 17 |
|
| 18 |
# Download the single model file from Hugging Face model repository
|
| 19 |
|
| 20 |
-
path = hf_hub_download(repo_id=REPO_ID, filename=MODEL_ID)
|
| 21 |
|
| 22 |
print(path)
|
| 23 |
detection_model = YOLO(path, task='detect')
|
|
|
|
| 17 |
|
| 18 |
# Download the single model file from Hugging Face model repository
|
| 19 |
|
| 20 |
+
path = hf_hub_download(repo_id=REPO_ID, filename=MODEL_ID, repo_type="space")
|
| 21 |
|
| 22 |
print(path)
|
| 23 |
detection_model = YOLO(path, task='detect')
|