Spaces:
Sleeping
Sleeping
Update app/run.py
Browse files- app/run.py +1 -1
app/run.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import os
|
2 |
|
3 |
# Ensure the HF_HOME environment variable is set correctly
|
4 |
-
|
5 |
|
6 |
# Ensure the directory exists
|
7 |
os.makedirs(cache_dir, exist_ok=True)
|
|
|
1 |
import os
|
2 |
|
3 |
# Ensure the HF_HOME environment variable is set correctly
|
4 |
+
cache_dir = os.getenv('HF_HOME', '/app/cache')
|
5 |
|
6 |
# Ensure the directory exists
|
7 |
os.makedirs(cache_dir, exist_ok=True)
|