NeoPy commited on
Commit
297c557
·
verified ·
1 Parent(s): 75d6b63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -4,9 +4,18 @@ from git import Repo
4
  import uuid
5
  from slugify import slugify
6
 
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)
 
4
  import uuid
5
  from slugify import slugify
6
 
7
+ def clone(
8
+ profile: gr.OAuthProfile,
9
+ oauth_token: gr.OAuthToken,
10
+ repo_git,
11
+ repo_hf,
12
+ sdk_type
13
+ ):
14
  folder = str(uuid.uuid4())
15
+ cloned_repo = Repo.clone_from(
16
+ repo_git,
17
+ folder
18
+ )
19
 
20
  #Upload to HF
21
  api = HfApi(token=oauth_token.token)