Anthonyg5005 commited on
Commit
265a38e
·
verified ·
1 Parent(s): 117c7e8

Update create new branch.py

Browse files
Files changed (1) hide show
  1. create new branch.py +2 -1
create new branch.py CHANGED
@@ -4,10 +4,11 @@ from huggingface_hub import create_branch
4
 
5
  #get user variables
6
  repo = input("Repository name: ")
 
7
  branch = input("New branch name: ")
8
 
9
  #login
10
  huggingface_hub.login(os.environ['HF_TOKEN'])
11
 
12
  #create the branch
13
- create_branch(f"{repo}", repo_type="model", branch=f"{branch}")
 
4
 
5
  #get user variables
6
  repo = input("Repository name: ")
7
+ r_type = input("Repo type (model) (dataset) (space): ")
8
  branch = input("New branch name: ")
9
 
10
  #login
11
  huggingface_hub.login(os.environ['HF_TOKEN'])
12
 
13
  #create the branch
14
+ create_branch(repo, repo_type=r_type, branch=branch)