Shouvik599 commited on
Commit
e9141f2
·
1 Parent(s): ddf4091

model load fix

Browse files
Files changed (2) hide show
  1. .dockerignore +6 -7
  2. Dockerfile +1 -2
.dockerignore CHANGED
@@ -1,9 +1,3 @@
1
- # Ignore model files - they'll be trained at startup
2
- models/*.joblib
3
- models/*.h5
4
- models/*.keras
5
- models/*.ipynb
6
-
7
  # Python cache
8
  __pycache__
9
  *.pyc
@@ -24,4 +18,9 @@ dist
24
 
25
  # Git
26
  .git
27
- .gitignore
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Python cache
2
  __pycache__
3
  *.pyc
 
18
 
19
  # Git
20
  .git
21
+ .gitignore
22
+
23
+ # CNN training artifacts (not needed)
24
+ models/*.h5
25
+ models/*.keras
26
+ models/*.ipynb
Dockerfile CHANGED
@@ -35,8 +35,7 @@ RUN mkdir -p ./uploads ./models
35
  COPY backend/ .
36
 
37
  # Copy model files (MLP model and scaler)
38
- COPY models/mlp_emotion_model.joblib ./models/
39
- COPY models/scaler.joblib ./models/
40
 
41
  # Copy frontend build
42
  COPY --from=frontend-build /app/frontend/dist ./static
 
35
  COPY backend/ .
36
 
37
  # Copy model files (MLP model and scaler)
38
+ COPY models/ ./models/
 
39
 
40
  # Copy frontend build
41
  COPY --from=frontend-build /app/frontend/dist ./static