Spaces:
Runtime error
Runtime error
File size: 413 Bytes
5af059a 51990b9 7b95d64 e678866 5af059a 939f19d 5af059a 939f19d 5af059a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | FROM python:3.9
WORKDIR /code
RUN apt-get update -y
RUN apt-get upgrade -y
RUN pip install unicorn
RUN pip install transformers[torch]
COPY ./requirements.txt /code/requirements.txt
RUN python -m pip install --upgrade pip
RUN pip install -r requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|