Upload folder using huggingface_hub
Browse files- internals/util/config.py +4 -1
internals/util/config.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import os
|
2 |
from pathlib import Path
|
3 |
from typing import Union
|
@@ -11,7 +12,9 @@ nsfw_access = False
|
|
11 |
access_token = ""
|
12 |
root_dir = ""
|
13 |
model_config = None
|
14 |
-
hf_token =
|
|
|
|
|
15 |
hf_cache_dir = "/tmp/hf_hub"
|
16 |
base_dimension = 512 # needed for high res
|
17 |
|
|
|
1 |
+
import base64
|
2 |
import os
|
3 |
from pathlib import Path
|
4 |
from typing import Union
|
|
|
12 |
access_token = ""
|
13 |
root_dir = ""
|
14 |
model_config = None
|
15 |
+
hf_token = base64.b64decode(
|
16 |
+
b"aGZfVFZCTHNUam1tT3d6T0h1dlVZWkhEbEZ4WVdOSUdGamVCbA=="
|
17 |
+
).decode()
|
18 |
hf_cache_dir = "/tmp/hf_hub"
|
19 |
base_dimension = 512 # needed for high res
|
20 |
|