feat: ensure HF_HOME env exist
Browse files
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 |
|