FROM python:3.9-slim # Set working directory WORKDIR /app # Copy project files COPY . . # Install dependencies RUN pip install --no-cache-dir --upgrade -r requirements.txt # Expose port used by Hugging Face spaces (optional but recommended) EXPOSE 7860 # Run app using python (Gradio serves automatically) CMD ["python", "app.py"]