Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -20,7 +20,7 @@ RUN mkdir -p /.cache/huggingface && \
|
|
| 20 |
chmod -R 777 /.cache
|
| 21 |
|
| 22 |
# Set environment variables for cache locations
|
| 23 |
-
ENV
|
| 24 |
ENV TORCH_HOME="/.cache/torch"
|
| 25 |
ENV SENTENCE_TRANSFORMERS_HOME="/.cache/sentence_transformers"
|
| 26 |
|
|
@@ -36,7 +36,8 @@ RUN pip install --no-cache-dir \
|
|
| 36 |
uvicorn[standard] \
|
| 37 |
pydantic \
|
| 38 |
python-multipart \
|
| 39 |
-
huggingface_hub
|
|
|
|
| 40 |
|
| 41 |
# Copy the necessary files into the container
|
| 42 |
COPY plant_data_chunks_and_embeddings.csv /app/plant_data_chunks_and_embeddings.csv
|
|
|
|
| 20 |
chmod -R 777 /.cache
|
| 21 |
|
| 22 |
# Set environment variables for cache locations
|
| 23 |
+
ENV HF_HOME="/.cache/huggingface"
|
| 24 |
ENV TORCH_HOME="/.cache/torch"
|
| 25 |
ENV SENTENCE_TRANSFORMERS_HOME="/.cache/sentence_transformers"
|
| 26 |
|
|
|
|
| 36 |
uvicorn[standard] \
|
| 37 |
pydantic \
|
| 38 |
python-multipart \
|
| 39 |
+
huggingface_hub \
|
| 40 |
+
accelerate>=0.26.0
|
| 41 |
|
| 42 |
# Copy the necessary files into the container
|
| 43 |
COPY plant_data_chunks_and_embeddings.csv /app/plant_data_chunks_and_embeddings.csv
|