ouob commited on
Commit
457b38c
1 Parent(s): a8b3886

feat: ensure HF_HOME env exist

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -8,6 +8,7 @@ REPO_DIR = '/data/repo/'
8
  USER = os.getenv('HF_USER')
9
  REPO_URL = os.getenv('HF_REPO_URL')
10
  ACCESS_TOKEN = os.getenv('HF_ACCESS_TOKEN')
 
11
  AUTH_REPO_URL = REPO_URL.replace('https://', f'https://{USER}:{ACCESS_TOKEN}@')
12
 
13
 
 
8
  USER = os.getenv('HF_USER')
9
  REPO_URL = os.getenv('HF_REPO_URL')
10
  ACCESS_TOKEN = os.getenv('HF_ACCESS_TOKEN')
11
+ HF_HOME = os.getenv('HF_HOME')
12
  AUTH_REPO_URL = REPO_URL.replace('https://', f'https://{USER}:{ACCESS_TOKEN}@')
13
 
14