multimodalart HF Staff commited on
Commit
4ac3bbd
·
verified ·
1 Parent(s): b76f040

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -7,6 +7,8 @@ from slugify import slugify
7
  def clone(profile: gr.OAuthProfile, oauth_token: gr.OAuthToken, repo_git, repo_hf):
8
  folder = uuid.uuid1()
9
  cloned_repo = Repo.clone_from(repo_git, folder)
 
 
10
  #Upload to HF
11
  api = HfApi(token=oauth_token)
12
  api.upload_folder(
 
7
  def clone(profile: gr.OAuthProfile, oauth_token: gr.OAuthToken, repo_git, repo_hf):
8
  folder = uuid.uuid1()
9
  cloned_repo = Repo.clone_from(repo_git, folder)
10
+ print({profile.username}/{slugify(repo_hf)})
11
+ print(cloned_repo)
12
  #Upload to HF
13
  api = HfApi(token=oauth_token)
14
  api.upload_folder(