Spaces:
Sleeping
Sleeping
File size: 438 Bytes
ffdedc7 d6c715e ffdedc7 6b689eb ffdedc7 6b689eb d08d617 6b689eb d6c715e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
FROM pytorch/pytorch:1.9.0-cuda10.2-cudnn7-runtime
RUN pip install "stanza>=1.2"
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt && pip install requests
COPY . /app
ENV STANZA_RESOURCES_DIR=/app/stanza_resources
RUN python - <<'PY'
import stanza
stanza.download('pt', model_dir='/app/stanza_resources')
PY
ENV PORT=7860
CMD sh -c 'gunicorn --bind 0.0.0.0:${PORT:-7860} --timeout 1200 app:app'
|