Weyaxi commited on
Commit
b68181a
1 Parent(s): 115252e

else token 2

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = token if token else oauth_token.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: