FROM python:3.10 # Install dependencies COPY requirements.txt /tmp/requirements.txt RUN pip install --no-cache-dir -r /tmp/requirements.txt # Force correct Gradio version RUN pip install --no-cache-dir --upgrade gradio==4.44.1 # Copy app code COPY . /app WORKDIR /app # Expose Space port ENV PORT=7860 CMD ["python", "app.py"]