denela-api / Dockerfile
DenizGogus's picture
Add directional routing and semantic reranking
cbd6d0b verified
Raw
History Blame Contribute Delete
698 Bytes
FROM python:3.11-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV DENELA_TRANSLATOR_BACKEND=local
ENV DENELA_MODEL_REPO=DenizGogus/denela-translator-models
ENV DENELA_WARM_MODELS=1
ENV DENELA_LOCAL_NUM_BEAMS=4
ENV DENELA_FORWARD_NUM_BEAMS=16
ENV DENELA_REVERSE_NUM_BEAMS=4
ENV DENELA_LOCAL_RERANK_CANDIDATES=8
ENV DENELA_LOCAL_MAX_NEW_TOKENS=128
ENV DENELA_LOCAL_USE_LEGACY_INPUT_ALIASES=false
ENV TOKENIZERS_PARALLELISM=false
ENV PORT=7860
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY denela ./denela
COPY data ./data
COPY web ./web
COPY hf_space_app.py .
CMD ["uvicorn", "hf_space_app:app", "--host", "0.0.0.0", "--port", "7860"]