Spaces:
Sleeping
Sleeping
Download Dockerfile from Grinding/SummarizationMicroservice: direct link, hf CLI and curl.
- Browser
- Download file 505 Bytes
-
https://huggingface.co/spaces/Grinding/SummarizationMicroservice/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Grinding/SummarizationMicroservice/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Grinding/SummarizationMicroservice/resolve/main/Dockerfile
505 Bytes
| FROM python:3.9-slim | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| ENV TRANSFORMERS_CACHE=/code/hf_cache | |
| RUN mkdir -p /code/hf_cache && chmod -R 777 /code/hf_cache | |
| # Pre-download summarization model | |
| RUN python -c "from transformers import pipeline; pipeline('summarization', model='knkarthick/MEETING_SUMMARY')" | |
| COPY ./app.py /code/app.py | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |