Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| tesseract-ocr \ | |
| libtesseract-dev \ | |
| poppler-utils \ | |
| && apt-get clean && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Give permission to the start script | |
| RUN chmod +x start.sh | |
| # Hugging Face Spaces uses 7860. We will map 7860 to the UI for the user. | |
| # IMPORTANT: In gui.py, change the API_URL to use 7860 and launch Gradio on 7860. | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |