Spaces:
Sleeping
Sleeping
pre-download model weights at build time
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
|
@@ -21,6 +21,8 @@ COPY requirements.txt /app/requirements.txt
|
|
| 21 |
RUN pip install --no-cache-dir gradio==5.28.0
|
| 22 |
RUN pip install --no-cache-dir -r /app/requirements.txt
|
| 23 |
|
|
|
|
|
|
|
| 24 |
COPY app.py /app/app.py
|
| 25 |
|
| 26 |
ENV PORT=7860
|
|
|
|
| 21 |
RUN pip install --no-cache-dir gradio==5.28.0
|
| 22 |
RUN pip install --no-cache-dir -r /app/requirements.txt
|
| 23 |
|
| 24 |
+
RUN python -c "from audiosr import build_model; build_model(model_name='basic', device='cpu')"
|
| 25 |
+
|
| 26 |
COPY app.py /app/app.py
|
| 27 |
|
| 28 |
ENV PORT=7860
|