Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -350,7 +350,7 @@ def upload_civit_to_hf(profile: Optional[gr.OAuthProfile], oauth_token: gr.OAuth
|
|
| 350 |
|
| 351 |
update_repo_visibility(repo_id=user_repo_id, private=False, token=oauth_token.token)
|
| 352 |
except:
|
| 353 |
-
raise gr.Error("
|
| 354 |
|
| 355 |
#transfer_repos = gr.load("multimodalart/transfer_repos", hf_token=os.environ["HUGGING_FACE_HUB_TOKEN"], src="spaces")
|
| 356 |
|
|
|
|
| 350 |
|
| 351 |
update_repo_visibility(repo_id=user_repo_id, private=False, token=oauth_token.token)
|
| 352 |
except:
|
| 353 |
+
raise gr.Error("Your Hugging Face Token expired. Log out and in again to upload your models.")
|
| 354 |
|
| 355 |
#transfer_repos = gr.load("multimodalart/transfer_repos", hf_token=os.environ["HUGGING_FACE_HUB_TOKEN"], src="spaces")
|
| 356 |
|