SeedOfEvil commited on
Commit
76d0ff1
·
verified ·
1 Parent(s): 50d19ca

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -10,7 +10,11 @@ WORKDIR /app
10
  COPY requirements.txt .
11
  RUN pip install --upgrade pip && pip install -r requirements.txt
12
 
13
- # Copy the application code
 
 
 
 
14
  COPY . .
15
 
16
  # Expose the port for Gradio (default is 7860)
 
10
  COPY requirements.txt .
11
  RUN pip install --upgrade pip && pip install -r requirements.txt
12
 
13
+ # Pre-download model weights on CPU (this avoids heavy downloads after GUI launch)
14
+ COPY download_model.py .
15
+ RUN python download_model.py
16
+
17
+ # Copy the rest of the application code
18
  COPY . .
19
 
20
  # Expose the port for Gradio (default is 7860)