gelnesr commited on
Commit
9e78969
·
1 Parent(s): 8a7bfb1
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -63,7 +63,8 @@ def check_permissions(token: Optional[str] = None) -> None:
63
  if token is None:
64
  raise gr.Error("Please log in to use this Space")
65
  try:
66
- get_hf_file_metadata(url=huggingface_hub.hf_hub_url(repo_id="EvolutionaryScale/esm3-sm-open-v1"), filename="config.json")
 
67
  return
68
  except GatedRepoError:
69
  raise gr.Error("You must have access to ... to run this Space. Please go through the gating process and come back.")
 
63
  if token is None:
64
  raise gr.Error("Please log in to use this Space")
65
  try:
66
+ url = huggingface_hub.hf_hub_url(repo_id="EvolutionaryScale/esm3-sm-open-v1", repo_type='model', filename="config.json")
67
+ get_hf_file_metadata(url=url)
68
  return
69
  except GatedRepoError:
70
  raise gr.Error("You must have access to ... to run this Space. Please go through the gating process and come back.")