LailaMB commited on
Commit
6925def
·
1 Parent(s): 151a7d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from PIL import Image
5
 
6
  yolov7_weights = hf_hub_download(repo_id="LailaMB/visual_pollution_detection", filename="best_640_rpoch56.pt")
7
 
8
- model = torch.hub.load('WongKinYiu/yolov7:main', 'custom', "LailaMB/visual_pollution_detection/best_640_rpoch56.pt", force_reload=True) # local repo
9
 
10
  def object_detection(im, size=640):
11
  results = model(im) # inference
 
5
 
6
  yolov7_weights = hf_hub_download(repo_id="LailaMB/visual_pollution_detection", filename="best_640_rpoch56.pt")
7
 
8
+ model = torch.hub.load('WongKinYiu/yolov7:main', 'custom', yolov7_weights, force_reload=True) # local repo
9
 
10
  def object_detection(im, size=640):
11
  results = model(im) # inference