hysts HF staff commited on
Commit
4025114
1 Parent(s): 469bdef
Files changed (1) hide show
  1. patch +1 -1
patch CHANGED
@@ -28,7 +28,7 @@ index 610d2de..e172080 100644
28
  - with open('./TOKEN', 'r') as f:
29
  - self.token = f.read().replace('\n', '') # remove the last \n!
30
  - logger.info(f'loaded hugging face access token from ./TOKEN!')
31
- + self.token = os.environ['HF_TOKEN']
32
  except FileNotFoundError as e:
33
  self.token = True
34
  logger.warning(
 
28
  - with open('./TOKEN', 'r') as f:
29
  - self.token = f.read().replace('\n', '') # remove the last \n!
30
  - logger.info(f'loaded hugging face access token from ./TOKEN!')
31
+ + self.token = os.getenv('HF_TOKEN')
32
  except FileNotFoundError as e:
33
  self.token = True
34
  logger.warning(