isat commited on
Commit
edc2df3
·
verified ·
1 Parent(s): 776b8aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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="spaces/mrtlive/segment-anything-model",
 
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,