ajayduraisamy commited on
Commit
80f5d4f
·
1 Parent(s): dff6a01

Fix LFS model download in Docker

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -5,6 +5,7 @@ WORKDIR /app
5
  RUN apt-get update && apt-get install -y \
6
  git \
7
  git-lfs \
 
8
  ffmpeg \
9
  libsm6 \
10
  libxext6 \
@@ -18,6 +19,15 @@ RUN pip install --no-cache-dir -r requirements.txt
18
 
19
  COPY . .
20
 
 
 
 
 
 
 
 
 
 
21
  EXPOSE 7860
22
 
23
  CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--timeout", "120", "app:app"]
 
5
  RUN apt-get update && apt-get install -y \
6
  git \
7
  git-lfs \
8
+ curl \
9
  ffmpeg \
10
  libsm6 \
11
  libxext6 \
 
19
 
20
  COPY . .
21
 
22
+ # Download the REAL model file from Hugging Face
23
+ RUN mkdir -p /app/models && \
24
+ curl -L \
25
+ "https://huggingface.co/spaces/ajaycodeself/vastu-ai/resolve/main/models/model0.pth?download=true" \
26
+ -o /app/models/model0.pth
27
+
28
+ # Verify model size during Docker build
29
+ RUN ls -lh /app/models/model0.pth
30
+
31
  EXPOSE 7860
32
 
33
  CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--timeout", "120", "app:app"]