Spaces:
Sleeping
Sleeping
Lazar Radojevic
commited on
Commit
·
f610704
1
Parent(s):
57a7496
add SENTENCE_TRANSFORMERS_HOME to dockerfile
Browse files- Dockerfile +2 -0
- run.py +1 -0
Dockerfile
CHANGED
@@ -10,6 +10,8 @@ RUN pip install -r requirements.txt
|
|
10 |
# Copy the rest of the application code to the working directory
|
11 |
COPY . .
|
12 |
|
|
|
|
|
13 |
# Expose the port FastAPI will run on
|
14 |
EXPOSE 7860
|
15 |
|
|
|
10 |
# Copy the rest of the application code to the working directory
|
11 |
COPY . .
|
12 |
|
13 |
+
ENV SENTENCE_TRANSFORMERS_HOME ./.cache
|
14 |
+
|
15 |
# Expose the port FastAPI will run on
|
16 |
EXPOSE 7860
|
17 |
|
run.py
CHANGED
@@ -6,6 +6,7 @@ from src.prompt_loader import PromptLoader
|
|
6 |
import os
|
7 |
|
8 |
os.environ["SENTENCE_TRANSFORMERS_HOME"] = "./.cache"
|
|
|
9 |
|
10 |
# Constants
|
11 |
SEED = 42
|
|
|
6 |
import os
|
7 |
|
8 |
os.environ["SENTENCE_TRANSFORMERS_HOME"] = "./.cache"
|
9 |
+
os.environ["HF_HOME"] = "./.cache"
|
10 |
|
11 |
# Constants
|
12 |
SEED = 42
|