vedmistry commited on
Commit
0928555
·
1 Parent(s): 53d85e1

pre-download model weights at build time

Browse files
Files changed (1) hide show
  1. 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