Update create new branch.py
Browse files- create new branch.py +3 -3
create new branch.py
CHANGED
@@ -33,11 +33,11 @@ create_branch(repo, repo_type=r_type, branch=branch)
|
|
33 |
|
34 |
#extra information
|
35 |
#won't work if special characters are used
|
36 |
-
if r_type == model:
|
37 |
print(f"Branch created at https://huggingface/{repo}/tree/{branch}")
|
38 |
-
elif r_type == dataset:
|
39 |
print(f"Branch created at https://huggingface/datasets/{repo}/tree/{branch}")
|
40 |
-
elif r_type == space:
|
41 |
print(f"Branch created at https://huggingface/spaces/{repo}/tree/{branch}")
|
42 |
#if token wasn't found then display following text:
|
43 |
if tfound == 'false':
|
|
|
33 |
|
34 |
#extra information
|
35 |
#won't work if special characters are used
|
36 |
+
if r_type == 'model':
|
37 |
print(f"Branch created at https://huggingface/{repo}/tree/{branch}")
|
38 |
+
elif r_type == 'dataset':
|
39 |
print(f"Branch created at https://huggingface/datasets/{repo}/tree/{branch}")
|
40 |
+
elif r_type == 'space':
|
41 |
print(f"Branch created at https://huggingface/spaces/{repo}/tree/{branch}")
|
42 |
#if token wasn't found then display following text:
|
43 |
if tfound == 'false':
|