Spaces:
Runtime error
Runtime error
| FROM --platform=linux/amd64 tensorflow/tensorflow:latest | |
| WORKDIR /usr/local/bin | |
| COPY selection.py . | |
| COPY requirements.txt . | |
| COPY --chown=user:user train.json . | |
| RUN pip install kaggle | |
| COPY kaggle.json /.kaggle/ | |
| RUN chmod 777 /.kaggle/kaggle.json | |
| # Set up cache directories with appropriate permissions | |
| RUN mkdir -p /.cache && chmod -R 777 /.cache | |
| # Change ownership of working directory (if necessary) | |
| RUN chown -R root:root /usr/local/bin | |
| RUN pip install transformers | |
| RUN pip install -r requirements.txt | |
| CMD ["python", "./selection.py","--port", "7860"] |