Spaces:
Running
Running
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app | |
| COPY app.py . | |
| # Pre-download the model during build so it's ready instantly | |
| RUN python -c "from transformers import pipeline; pipeline('sentiment-analysis', model='w11wo/indonesian-roberta-base-sentiment-classifier')" | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |