Ayesha-Majeed commited on
Commit
876813a
·
verified ·
1 Parent(s): 01bd42f

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -522,7 +522,7 @@ def run_birefnet(img_rgb):
522
 
523
  model_path = None
524
  for p in paths_to_try:
525
- if os.path.exists(p) and os.path.exists(os.path.join(p, "config.json")):
526
  model_path = p
527
  break
528
 
 
522
 
523
  model_path = None
524
  for p in paths_to_try:
525
+ if os.path.exists(p) and os.path.exists(os.path.join(p, "config.json")) and os.path.exists(os.path.join(p, "model.safetensors")):
526
  model_path = p
527
  break
528