Update create new branch.py
Browse files- 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(
|
|
|
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)
|