Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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 |
|