Changed depracated TRANSFORMER_CACHE environment variable to HF_HOME for transformersv5
Browse files- .gitignore +1 -0
- Dockerfile +1 -1
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
key.txt
|
Dockerfile
CHANGED
@@ -5,7 +5,7 @@ FROM python:3.9-slim
|
|
5 |
WORKDIR /app
|
6 |
|
7 |
# Define a writable cache directory
|
8 |
-
ENV
|
9 |
|
10 |
# Copy requirements.txt and install dependencies
|
11 |
COPY requirements.txt .
|
|
|
5 |
WORKDIR /app
|
6 |
|
7 |
# Define a writable cache directory
|
8 |
+
ENV HF_HOME=/tmp/.cache
|
9 |
|
10 |
# Copy requirements.txt and install dependencies
|
11 |
COPY requirements.txt .
|