Update Dockerfile
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
@@ -21,7 +21,7 @@ ENV FLASK_APP=app.py
|
|
21 |
# Install dependencies
|
22 |
RUN pip install --no-cache-dir -r requirements.txt
|
23 |
|
24 |
-
RUN "from transformers import AutoModelForCausalLM, AutoTokenizer; AutoModelForCausalLM.from_pretrained('gpt2-xl', cache_dir='/cache/huggingface'); AutoTokenizer.from_pretrained('gpt2-xl', cache_dir='/cache/huggingface')"
|
25 |
|
26 |
# Copy the rest of the app
|
27 |
COPY . .
|
|
|
21 |
# Install dependencies
|
22 |
RUN pip install --no-cache-dir -r requirements.txt
|
23 |
|
24 |
+
RUN python -c "from transformers import AutoModelForCausalLM, AutoTokenizer; AutoModelForCausalLM.from_pretrained('gpt2-xl', cache_dir='/cache/huggingface'); AutoTokenizer.from_pretrained('gpt2-xl', cache_dir='/cache/huggingface')"
|
25 |
|
26 |
# Copy the rest of the app
|
27 |
COPY . .
|