Download Dockerfile from indra-ipd/test: direct link, hf CLI and curl.
- Browser
- Download file 367 Bytes
-
https://huggingface.co/spaces/indra-ipd/test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/indra-ipd/test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/indra-ipd/test/resolve/main/Dockerfile
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"] |