owaiskha9654 commited on
Commit
ceb9553
1 Parent(s): 74c94c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ FILENAME = "best.pt"
8
 
9
  yolov7_weights = hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
10
 
11
- model = torch.hub.load('WongKinYiu/yolov7', path_or_model=yolov7_weights, autoshape=True) # local repo
12
 
13
  def object_detection(im, size=416):
14
  results = model(im) # inference
 
8
 
9
  yolov7_weights = hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
10
 
11
+ model = torch.hub.load('WongKinYiu/yolov7', model=yolov7_weights, autoshape=True) # local repo
12
 
13
  def object_detection(im, size=416):
14
  results = model(im) # inference