Spaces:
Sleeping
Sleeping
Gilbert Botchway
commited on
Commit
·
4fd2283
1
Parent(s):
a11ff8d
more modifications#
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -2,6 +2,12 @@ FROM python:3.9
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
COPY requirements.txt .
|
6 |
|
7 |
COPY sentimentappstreamlit.py .
|
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
5 |
+
# Create a writable directory for the cache
|
6 |
+
RUN mkdir -p /.cache/huggingface/hub
|
7 |
+
|
8 |
+
# Set the TRANSFORMERS_CACHE environment variable
|
9 |
+
ENV TRANSFORMERS_CACHE /.cache/huggingface/hub
|
10 |
+
|
11 |
COPY requirements.txt .
|
12 |
|
13 |
COPY sentimentappstreamlit.py .
|