Spaces:
Runtime error
Runtime error
else token 2
Browse files
app.py
CHANGED
|
@@ -182,7 +182,7 @@ def commit(repo, pr_number=None, message="Adding Evaluation Results", oauth_toke
|
|
| 182 |
elif oauth_token.expires_at < time.time():
|
| 183 |
raise gr.Error("Token expired. Logout and try again.")
|
| 184 |
else:
|
| 185 |
-
token =
|
| 186 |
|
| 187 |
if repo.startswith("https://huggingface.co/"):
|
| 188 |
try:
|
|
|
|
| 182 |
elif oauth_token.expires_at < time.time():
|
| 183 |
raise gr.Error("Token expired. Logout and try again.")
|
| 184 |
else:
|
| 185 |
+
token = oauth_token.token
|
| 186 |
|
| 187 |
if repo.startswith("https://huggingface.co/"):
|
| 188 |
try:
|