hotchpotch commited on
Commit
6e9b398
·
1 Parent(s): dd6b37c

update cache setting

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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