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