Commit
·
6e9b398
1
Parent(s):
dd6b37c
update cache setting
Browse files
app.py
CHANGED
@@ -64,6 +64,9 @@ Responses must be given in Japanese.
|
|
64 |
if os.getenv("SPACE_ID"):
|
65 |
USE_HF_SPACE = True
|
66 |
os.environ["HF_HOME"] = "/data/.huggingface"
|
|
|
|
|
|
|
67 |
else:
|
68 |
USE_HF_SPACE = False
|
69 |
|
|
|
64 |
if os.getenv("SPACE_ID"):
|
65 |
USE_HF_SPACE = True
|
66 |
os.environ["HF_HOME"] = "/data/.huggingface"
|
67 |
+
os.environ["HF_DATASETS_CACHE"] = "/data/.huggingface/datasets"
|
68 |
+
os.makedirs(os.environ["HF_HOME"], exist_ok=True)
|
69 |
+
os.makedirs(os.environ["HF_DATASETS_CACHE"], exist_ok=True)
|
70 |
else:
|
71 |
USE_HF_SPACE = False
|
72 |
|