Spaces:
Runtime error
Runtime error
| # Base image | |
| FROM python:3.9-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy everything | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose ports for Flask (5000) and Streamlit (8501) | |
| EXPOSE 7860 | |
| EXPOSE 7860 | |
| # Run both Flask and Streamlit together | |
| CMD ["bash", "-c", "python /content/model/backend & streamlit run /content/model/frontend/Frontend_app.py --server.port=7860 --server.address=0.0.0.0"] | |