# FORCE Python 3.10 (Fixes the numpy/SadTalker error) FROM python:3.10 # Set the working directory WORKDIR /app # Install git and ffmpeg (Required for SadTalker video generation) RUN apt-get update && apt-get install -y git ffmpeg # Copy your files into the container COPY . . # Upgrade pip to avoid installation errors RUN pip install --no-cache-dir --upgrade pip setuptools wheel # Install your requirements (This will now work because we are on Python 3.10) RUN pip install --no-cache-dir -r requirements.txt # Start the application (Standard entry point for HF Spaces) CMD ["python", "app.py"]