Anthonyg5005 commited on
Commit
61d560a
·
verified ·
1 Parent(s): efd5c98

Update HF Login Snippet Kaggle.py

Browse files
Files changed (1) hide show
  1. HF Login Snippet Kaggle.py +0 -2
HF Login Snippet Kaggle.py CHANGED
@@ -17,11 +17,9 @@ if os.environ.get('KAGGLE_KERNEL_RUN_TYPE', None) is not None: #check if user in
17
  if get_token() is not None:
18
  #if the token is found then log in:
19
  login(get_token())
20
- tfound = "Where are my doritos?"
21
  else:
22
  #if the token is not found then prompt user to provide it:
23
  login(input("API token not detected. Enter your HuggingFace (WRITE) token: "))
24
- tfound = "false"
25
 
26
  #if the token is read only then prompt user to provide a write token (Only required if user needs a WRITE token, remove if READ is enough):
27
  while True:
 
17
  if get_token() is not None:
18
  #if the token is found then log in:
19
  login(get_token())
 
20
  else:
21
  #if the token is not found then prompt user to provide it:
22
  login(input("API token not detected. Enter your HuggingFace (WRITE) token: "))
 
23
 
24
  #if the token is read only then prompt user to provide a write token (Only required if user needs a WRITE token, remove if READ is enough):
25
  while True: