Spaces:
Running
Running
vidhanm
commited on
Commit
·
e2e9c74
1
Parent(s):
137b7f1
trying new approach
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -24,7 +24,9 @@ RUN if [ ! -f /app/test_image.jpg ]; then echo "ERROR: test_image.jpg not found!
|
|
24 |
|
25 |
# Set Python path to include the nanoVLM models directory, so `from models...` works
|
26 |
ENV PYTHONPATH="/app/nanoVLM:${PYTHONPATH}"
|
27 |
-
|
|
|
|
|
28 |
|
29 |
# Create cache directory with write permissions
|
30 |
RUN mkdir -p $HF_HOME && chmod -R 777 $HF_HOME
|
|
|
24 |
|
25 |
# Set Python path to include the nanoVLM models directory, so `from models...` works
|
26 |
ENV PYTHONPATH="/app/nanoVLM:${PYTHONPATH}"
|
27 |
+
|
28 |
+
# Define a writable cache directory for Hugging Face downloads
|
29 |
+
ENV HF_HOME=/app/.cache/huggingface
|
30 |
|
31 |
# Create cache directory with write permissions
|
32 |
RUN mkdir -p $HF_HOME && chmod -R 777 $HF_HOME
|