Anthonyg5005 commited on
Commit
00d20d4
·
verified ·
1 Parent(s): a8d61ee

Update create new branch.py

Browse files
Files changed (1) hide show
  1. 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':