Spaces:
Running
Running
Commit
•
cd0dc2e
1
Parent(s):
292be3c
Update app.py
Browse files
app.py
CHANGED
@@ -349,6 +349,7 @@ def upload_civit_to_hf(profile: Optional[gr.OAuthProfile], oauth_token: gr.OAuth
|
|
349 |
token=oauth_token.token
|
350 |
)
|
351 |
update_repo_visibility(repo_id=user_repo_id, private=False, token=oauth_token.token)
|
|
|
352 |
except Exception as e:
|
353 |
print(e)
|
354 |
raise gr.Error("Your Hugging Face Token expired. Log out and in again to upload your models.")
|
|
|
349 |
token=oauth_token.token
|
350 |
)
|
351 |
update_repo_visibility(repo_id=user_repo_id, private=False, token=oauth_token.token)
|
352 |
+
gr.Info(f"Model {user_repo_id} uploaded!")
|
353 |
except Exception as e:
|
354 |
print(e)
|
355 |
raise gr.Error("Your Hugging Face Token expired. Log out and in again to upload your models.")
|