Spaces:
Sleeping
Sleeping
Commit ·
9f6646d
1
Parent(s): adc80ba
Force Keras 2 via TF_USE_LEGACY_KERAS env var
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -16,6 +16,9 @@ USER user
|
|
| 16 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 17 |
WORKDIR /home/user/app
|
| 18 |
|
|
|
|
|
|
|
|
|
|
| 19 |
# Install Python dependencies
|
| 20 |
COPY --chown=user requirements.txt .
|
| 21 |
RUN pip install --no-cache-dir --upgrade pip
|
|
|
|
| 16 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 17 |
WORKDIR /home/user/app
|
| 18 |
|
| 19 |
+
# Force Keras 2 for TensorFlow 2.15 compatibility
|
| 20 |
+
ENV TF_USE_LEGACY_KERAS=1
|
| 21 |
+
|
| 22 |
# Install Python dependencies
|
| 23 |
COPY --chown=user requirements.txt .
|
| 24 |
RUN pip install --no-cache-dir --upgrade pip
|