# Use an official Python runtime as the base image FROM python:3.9 # Set the working directory in the container WORKDIR /app # Copy the current directory contents into the container COPY . /app # Install dependencies RUN apt-get update && apt-get install -y ffmpeg RUN pip install --no-cache-dir torch diffusers transformers scipy gradio ffmpeg-python # Expose port 7860 for Gradio EXPOSE 7860 # Command to run the Gradio app CMD ["python", "app.py"]