multimodalart HF staff commited on
Commit
8a48df3
1 Parent(s): 2c28e07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -482,7 +482,7 @@ def check_token(OAuthToken: gr.OAuthToken | None):
482
  gr.Warning("Invalid user token. Make sure to get your Hugging Face token from the settings page")
483
  return gr.update(visible=False), gr.update(visible=False)
484
  else:
485
- if ("write_repos" not in OAuthToken.scope):
486
  gr.Warning("Ops, you didn't give Write Repos access")
487
  else:
488
  if user_data['canPay']:
 
482
  gr.Warning("Invalid user token. Make sure to get your Hugging Face token from the settings page")
483
  return gr.update(visible=False), gr.update(visible=False)
484
  else:
485
+ if ("write-repos" not in OAuthToken.scope):
486
  gr.Warning("Ops, you didn't give Write Repos access")
487
  else:
488
  if user_data['canPay']: