Spaces:
Build error
Build error
Commit
·
25387ae
1
Parent(s):
55a39b1
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ FILENAME = "best.pt"
|
|
8 |
|
9 |
yolov7_custom_weights = hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
|
10 |
|
11 |
-
model = torch.hub.load('Owaiskhan9654/yolov7-1:main',model='custom', path_or_model=yolov7_custom_weights, force_reload=True) #
|
12 |
|
13 |
def object_detection(im, size=416):
|
14 |
results = model(im)
|
|
|
8 |
|
9 |
yolov7_custom_weights = hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
|
10 |
|
11 |
+
model = torch.hub.load('Owaiskhan9654/yolov7-1:main',model='custom', path_or_model=yolov7_custom_weights, force_reload=True) # My Github repository https://github.com/Owaiskhan9654
|
12 |
|
13 |
def object_detection(im, size=416):
|
14 |
results = model(im)
|