Spaces:
Runtime error
Runtime error
File size: 456 Bytes
c077991 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# 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"]
|