Spaces:
Runtime error
Runtime error
FROM python:3.9-slim | |
WORKDIR /app | |
COPY . /app | |
# Atualiza e instala dependências do sistema | |
RUN apt-get update && apt-get install -y build-essential libssl-dev && rm -rf /var/lib/apt/lists/* | |
# Instala dependências Python | |
RUN pip install --no-cache-dir -r requirements.txt | |
RUN pip install --no-cache-dir transformers accelerate sentencepiece torch | |
# Define o comando de execução | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |