Spaces:
Build error
Build error
| # Use Python base image | |
| FROM python:3.8 | |
| # Set working directory | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy project files | |
| COPY . . | |
| # Run evaluation before deploying | |
| RUN python evaluate_prompts.py | |
| # If evaluation passes, launch Streamlit app | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |