Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ import os
|
|
| 10 |
|
| 11 |
# Load SAM and MiDaS models
|
| 12 |
def load_models():
|
| 13 |
-
sam_checkpoint = "sam_vit_h_4b8939.pth"
|
| 14 |
if not os.path.exists(sam_checkpoint):
|
| 15 |
raise FileNotFoundError("Please upload the SAM checkpoint file to the working directory.")
|
| 16 |
|
|
|
|
| 10 |
|
| 11 |
# Load SAM and MiDaS models
|
| 12 |
def load_models():
|
| 13 |
+
sam_checkpoint = "https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth"
|
| 14 |
if not os.path.exists(sam_checkpoint):
|
| 15 |
raise FileNotFoundError("Please upload the SAM checkpoint file to the working directory.")
|
| 16 |
|