my1stspace / Dockerfile
Takashi Itoh
Change globals to state. Change transformers version. Delete code history comments.
96fd466
raw
history blame contribute delete
367 Bytes
FROM python:3.9.7
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
# preload models
RUN python -c '\
from transformers import BartForConditionalGeneration, AutoTokenizer;\
AutoTokenizer.from_pretrained("ibm/materials.selfies-ted");\
BartForConditionalGeneration.from_pretrained("ibm/materials.selfies-ted")'
COPY . .
CMD ["python", "app.py"]