Spaces:
Runtime error
Runtime error
FROM python:3.9 | |
# Set working directory | |
WORKDIR /code | |
# Copy requirements file and install dependencies | |
COPY ./requirements.txt /code/requirements.txt | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
# Set environment variable for Transformers cache | |
ENV TRANSFORMERS_CACHE=/code/.cache | |
# Copy the rest of the application code | |
COPY . . | |
# Command to run your application | |
CMD ["uvicorn", "server.caption_server:app", "--reload", "--port", "8000"] | |