fffiloni commited on
Commit
430681e
·
verified ·
1 Parent(s): afdb770

gated-repo clearer vocable

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -366,7 +366,7 @@ def _gated_repo_access_text() -> str:
366
  """Return a user-facing message explaining gated repo access."""
367
  return (
368
  f"Your Hugging Face account may not yet have access to the gated repo "
369
- f"{_GATED_REPO_ID}. Request or verify access here: {_GATED_REPO_URL}"
370
  )
371
 
372
 
@@ -438,12 +438,12 @@ def _hf_auth_status(profile: gr.OAuthProfile | None) -> str:
438
  if profile is None:
439
  return (
440
  "**Hugging Face:** not signed in \n"
441
- f"To use this demo, sign in and make sure your account has access to "
442
  f"[{_GATED_REPO_ID}]({_GATED_REPO_URL})."
443
  )
444
  return (
445
  f"**Hugging Face:** signed in as `{profile.username}` \n"
446
- f"If loading fails, verify access to [{_GATED_REPO_ID}]({_GATED_REPO_URL})."
447
  )
448
 
449
 
@@ -568,7 +568,7 @@ def load_models(
568
  raise gr.Error(
569
  "Failed to load the model because this Hugging Face account does not yet "
570
  f"have access to {_GATED_REPO_ID}. "
571
- f"Request or verify access here: {_GATED_REPO_URL}"
572
  ) from e
573
  if _is_oom_error(e):
574
  raise gr.Error(
 
366
  """Return a user-facing message explaining gated repo access."""
367
  return (
368
  f"Your Hugging Face account may not yet have access to the gated repo "
369
+ f"{_GATED_REPO_ID}. Request or verify gated-repo access here: {_GATED_REPO_URL}"
370
  )
371
 
372
 
 
438
  if profile is None:
439
  return (
440
  "**Hugging Face:** not signed in \n"
441
+ f"To use this demo, sign in and make sure your account has gated-repo access to "
442
  f"[{_GATED_REPO_ID}]({_GATED_REPO_URL})."
443
  )
444
  return (
445
  f"**Hugging Face:** signed in as `{profile.username}` \n"
446
+ f"If loading fails, verify gated-repo access to [{_GATED_REPO_ID}]({_GATED_REPO_URL})."
447
  )
448
 
449
 
 
568
  raise gr.Error(
569
  "Failed to load the model because this Hugging Face account does not yet "
570
  f"have access to {_GATED_REPO_ID}. "
571
+ f"Request or verify gated-repo access here: {_GATED_REPO_URL}"
572
  ) from e
573
  if _is_oom_error(e):
574
  raise gr.Error(