idkash1 commited on
Commit
f510c5d
·
verified ·
1 Parent(s): 32bfdb7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 . .