Spaces:
Runtime error
Runtime error
hiraltalsaniya
commited on
Commit
·
a6f7bad
1
Parent(s):
6ac69ab
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ REPO_ID = "hiraltalsaniya/YOLOv7"
|
|
7 |
FILENAME = "best.pt"
|
8 |
|
9 |
|
10 |
-
yolov7_custom_weights = hf_hub_download(repo_id=REPO_ID, filename=FILENAME,repo_type='
|
11 |
|
12 |
model = torch.hub.load('WongKinYiu/yolov7:main',model='custom', path_or_model=yolov7_custom_weights, force_reload=True)
|
13 |
def object_detection(im, size=416):
|
|
|
7 |
FILENAME = "best.pt"
|
8 |
|
9 |
|
10 |
+
yolov7_custom_weights = hf_hub_download(repo_id=REPO_ID, filename=FILENAME,repo_type='space')
|
11 |
|
12 |
model = torch.hub.load('WongKinYiu/yolov7:main',model='custom', path_or_model=yolov7_custom_weights, force_reload=True)
|
13 |
def object_detection(im, size=416):
|