Spaces:
Runtime error
Runtime error
FROM python:3.9 | |
WORKDIR /code | |
# Create a writable directory for the cache | |
RUN mkdir -p /.cache/huggingface/hub && chmod -R 777 /.cache | |
# Set the TRANSFORMERS_CACHE environment variable | |
ENV TRANSFORMERS_CACHE /.cache/huggingface/hub | |
COPY ./requirements.txt /code/requirements.txt | |
RUN pip3 install --upgrade pip | |
RUN pip3 install -r requirements.txt | |
# | |
COPY ./src /code/src | |
# | |
CMD ["streamlit","run", "src/app/app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |