multimodalart HF staff commited on
Commit
7c0fb07
1 Parent(s): 233589f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -7,6 +7,7 @@ from slugify import slugify
7
  def clone(profile: gr.OAuthProfile, oauth_token: gr.OAuthToken, repo_git, repo_hf, sdk_type):
8
  folder = str(uuid.uuid4())
9
  cloned_repo = Repo.clone_from(repo_git, folder)
 
10
 
11
  #Upload to HF
12
  api = HfApi(token=oauth_token.token)
 
7
  def clone(profile: gr.OAuthProfile, oauth_token: gr.OAuthToken, repo_git, repo_hf, sdk_type):
8
  folder = str(uuid.uuid4())
9
  cloned_repo = Repo.clone_from(repo_git, folder)
10
+ cloned_repo.git.submodule('update', '--init', '--recursive')
11
 
12
  #Upload to HF
13
  api = HfApi(token=oauth_token.token)