Spaces:
Runtime error
Runtime error
| FROM python:3.10-slim | |
| # Install modern system dependencies (updated graphics engine for OpenCV) | |
| RUN apt-get update && apt-get install -y \ | |
| tesseract-ocr \ | |
| libgl1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /code | |
| # Copy and install Python requirements | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy all project code | |
| COPY . . | |
| # Hugging Face Spaces run on port 7860 by default | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |