multimodalart HF staff commited on
Commit
49bde08
·
verified ·
1 Parent(s): ba55bdd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -361,7 +361,8 @@ def upload_civit_to_hf(profile: Optional[gr.OAuthProfile], oauth_token: gr.OAuth
361
  )
362
 
363
  update_repo_visibility(repo_id=user_repo_id, private=False, token=oauth_token.token)
364
- except:
 
365
  raise gr.Error("Your Hugging Face Token expired. Log out and in again to upload your models.")
366
 
367
  #transfer_repos = gr.load("multimodalart/transfer_repos", hf_token=os.environ["HUGGING_FACE_HUB_TOKEN"], src="spaces")
 
361
  )
362
 
363
  update_repo_visibility(repo_id=user_repo_id, private=False, token=oauth_token.token)
364
+ except Exception as e:
365
+ print(e)
366
  raise gr.Error("Your Hugging Face Token expired. Log out and in again to upload your models.")
367
 
368
  #transfer_repos = gr.load("multimodalart/transfer_repos", hf_token=os.environ["HUGGING_FACE_HUB_TOKEN"], src="spaces")