Spaces:
Build error
Build error
owaiskha9654
commited on
Commit
•
a9989a3
1
Parent(s):
72cb607
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ REPO_ID = "owaiskha9654/Yolov7_Custom_Object_Detection"
|
|
8 |
FILENAME = "best.pt"
|
9 |
print(os.getcwd())
|
10 |
yolov7_weights = hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
|
11 |
-
model = torch.hub.load('WongKinYiu/yolov7',
|
12 |
#print(l_files)
|
13 |
|
14 |
|
|
|
8 |
FILENAME = "best.pt"
|
9 |
print(os.getcwd())
|
10 |
yolov7_weights = hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
|
11 |
+
model = torch.hub.load('WongKinYiu/yolov7', model=yolov7_weights, force_reload=True) # local repo
|
12 |
#print(l_files)
|
13 |
|
14 |
|