Commit
•
8a48df3
1
Parent(s):
2c28e07
Update app.py
Browse files
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 ("
|
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']:
|