Anthonyg5005 commited on
Commit
95c8d15
·
verified ·
1 Parent(s): c3d29d1

center text and add note

Browse files
Files changed (1) hide show
  1. manage branches.py +3 -3
manage branches.py CHANGED
@@ -75,7 +75,7 @@ if os.environ.get('KAGGLE_KERNEL_RUN_TYPE', None) is not None: #check if user in
75
  if get_token() is not None:
76
  #if the token is found then log in:
77
  login(get_token())
78
- tfound = "Where are my doritos?"
79
  else:
80
  #if the token is not found then prompt user to provide it:
81
  login(input("API token not detected. Enter your HuggingFace (WRITE) token: "))
@@ -87,8 +87,8 @@ while True:
87
  clear_screen()
88
  if os.environ.get('HF_TOKEN', None) is not None: #if environ finds HF_TOKEN as read-only then display following text and exit:
89
  print('''
90
- You have the environment variable HF_TOKEN set.
91
- You cannot log in.
92
  Either set the environment variable to a 'WRITE' token or remove it.
93
  ''')
94
  input("Press enter to continue.")
 
75
  if get_token() is not None:
76
  #if the token is found then log in:
77
  login(get_token())
78
+ tfound = "Where are my doritos?" #doesn't matter what this is, only false is used
79
  else:
80
  #if the token is not found then prompt user to provide it:
81
  login(input("API token not detected. Enter your HuggingFace (WRITE) token: "))
 
87
  clear_screen()
88
  if os.environ.get('HF_TOKEN', None) is not None: #if environ finds HF_TOKEN as read-only then display following text and exit:
89
  print('''
90
+ You have the environment variable HF_TOKEN set.
91
+ You cannot log in.
92
  Either set the environment variable to a 'WRITE' token or remove it.
93
  ''')
94
  input("Press enter to continue.")