TZO777 commited on
Commit
68b73c2
·
verified ·
1 Parent(s): 6449558

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def load_model(repo_id):
17
 
18
  # Download the single model file from Hugging Face model repository
19
 
20
- path = hf_hub_download(repo_id=REPO_ID, filename=MODEL_ID)
21
 
22
  print(path)
23
  detection_model = YOLO(path, task='detect')
 
17
 
18
  # Download the single model file from Hugging Face model repository
19
 
20
+ path = hf_hub_download(repo_id=REPO_ID, filename=MODEL_ID, repo_type="space")
21
 
22
  print(path)
23
  detection_model = YOLO(path, task='detect')