Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
|
| 3 |
-
# Install FFmpeg
|
| 4 |
RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/*
|
| 5 |
|
| 6 |
WORKDIR /app
|
|
@@ -10,10 +10,12 @@ ENV XDG_CACHE_HOME=/tmp
|
|
| 10 |
COPY requirements.txt .
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
-
# Pre-download the
|
| 14 |
RUN python -c "import whisper; whisper.load_model('base')"
|
| 15 |
|
| 16 |
-
#
|
|
|
|
|
|
|
| 17 |
COPY app.py .
|
| 18 |
EXPOSE 7860
|
| 19 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
|
| 3 |
+
# Install FFmpeg for Voice/Video
|
| 4 |
RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/*
|
| 5 |
|
| 6 |
WORKDIR /app
|
|
|
|
| 10 |
COPY requirements.txt .
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
+
# Pre-download the Voice Model
|
| 14 |
RUN python -c "import whisper; whisper.load_model('base')"
|
| 15 |
|
| 16 |
+
# Pre-download the Uncensored Image Model
|
| 17 |
+
RUN python -c "from diffusers import StableDiffusionPipeline; StableDiffusionPipeline.from_pretrained('prompthero/openjourney', safety_checker=None)"
|
| 18 |
+
|
| 19 |
COPY app.py .
|
| 20 |
EXPOSE 7860
|
| 21 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|