Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -112,7 +112,8 @@ if not os.path.exists(GROUNDING_DINO_CHECKPOINT_PATH):
|
|
112 |
|
113 |
if not os.path.exists(SAM_CHECKPOINT_PATH):
|
114 |
sam_file = hf_hub_download(
|
115 |
-
repo_id="
|
|
|
116 |
filename="sam_vit_h_4b8939.pth",
|
117 |
local_dir=CKPT_DIR,
|
118 |
token=hf_token,
|
|
|
112 |
|
113 |
if not os.path.exists(SAM_CHECKPOINT_PATH):
|
114 |
sam_file = hf_hub_download(
|
115 |
+
repo_id="mrtlive/segment-anything-model", # remove "spaces/"
|
116 |
+
repo_type="space", # tell the Hub it's a Space
|
117 |
filename="sam_vit_h_4b8939.pth",
|
118 |
local_dir=CKPT_DIR,
|
119 |
token=hf_token,
|