Add link to the access token

#5
by marcsun13 HF staff - opened
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ def calculate_memory(model_name:str, library:str, options:list, access_token:str
67
  try:
68
  model = create_empty_model(model_name, library_name=library, trust_remote_code=True, access_token=access_token)
69
  except GatedRepoError:
70
- raise gr.Error(f"Model `{model_name}` is a gated model, please ensure to pass in your access token and try again if you have access.")
71
  except RepositoryNotFoundError:
72
  raise gr.Error(f"Model `{model_name}` was not found on the Hub, please try another model name.")
73
  except ValueError as e:
 
67
  try:
68
  model = create_empty_model(model_name, library_name=library, trust_remote_code=True, access_token=access_token)
69
  except GatedRepoError:
70
+ raise gr.Error(f"Model `{model_name}` is a gated model, please ensure to pass in your access token and try again if you have access. You can find your access token here : https://huggingface.co/settings/tokens. ")
71
  except RepositoryNotFoundError:
72
  raise gr.Error(f"Model `{model_name}` was not found on the Hub, please try another model name.")
73
  except ValueError as e: