Spaces:
Runtime error
Runtime error
Fix
Browse files
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.
|
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(
|