Spaces:
Build error
Build error
| FROM python:3.9-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| tesseract-ocr \ | |
| libopencv-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy and install requirements | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the app | |
| COPY app.py . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the Gradio app | |
| CMD ["python", "app.py"] |