hf auth
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ 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 |
+
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.")
|