Spaces:
Runtime error
Runtime error
| FROM python:3.11.6 | |
| WORKDIR /app | |
| COPY requirements.txt ./requirements.txt | |
| RUN pip install -r requirements.txt | |
| RUN pip install streamlit==1.24.0 | |
| USER root | |
| RUN chmod -R 777 /app | |
| RUN chown -R root:root /app | |
| ENV STREAMLIT_SERVER_ENABLECORS=false | |
| RUN mkdir -p /tmp/cache/ | |
| RUN chmod a+rwx -R /tmp/cache/ | |
| RUN mkdir /uploads && chmod -R 777 /uploads | |
| ENV TRANSFORMERS_CACHE=/tmp/cache/ | |
| EXPOSE 7860 | |
| COPY . /app | |
| ENTRYPOINT ["streamlit", "run"] | |
| CMD ["app.py", "--server.port", "7860"] |