LailaMB commited on
Commit
c88766e
·
1 Parent(s): 01787c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,11 +3,11 @@ import gradio as gr
3
  from huggingface_hub import hf_hub_download
4
  from PIL import Image
5
 
6
- REPO_ID = "LailaMB/visual_pollution_detection"
7
  FILENAME = "models/best_640_rpoch56.pt"
8
 
9
  yolov7_weights = hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
10
-
11
  model = torch.hub.load('WongKinYiu/yolov7:main', 'custom', path=yolov7_weights, force_reload=True) # local repo
12
 
13
  def object_detection(im, size=640):
 
3
  from huggingface_hub import hf_hub_download
4
  from PIL import Image
5
 
6
+ REPO_ID = "Yolov7/yolov7"
7
  FILENAME = "models/best_640_rpoch56.pt"
8
 
9
  yolov7_weights = hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
10
+
11
  model = torch.hub.load('WongKinYiu/yolov7:main', 'custom', path=yolov7_weights, force_reload=True) # local repo
12
 
13
  def object_detection(im, size=640):