Akash8150 commited on
Commit ·
3ea03df
1
Parent(s): 501a221
Fix: pin tensorflow-cpu==2.13.0 to match saved Keras 2.x model format
Browse filesFiles changed (2)
- Dockerfile+6-2
- requirements-hf.txt+5-4
123425 unmodified lines30313233FROM python:3.10-slim# Set working directoryWORKDIR /app25 unmodified linesEXPOSE 7860# Run the Flask appCMD ["python", "app.py"]1234567825 unmodified lines34353637FROM python:3.10-slim# Suppress TensorFlow oneDNN warningsENV TF_ENABLE_ONEDNN_OPTS=0ENV TF_CPP_MIN_LOG_LEVEL=2# Set working directoryWORKDIR /app25 unmodified linesEXPOSE 7860# Run the Flask appCMD ["python", "app.py"]
12345# Inference-only requirements for Hugging Face deploymenttensorflow-cpu==2.15.0numpy==1.26.4flask==3.0.3pillow==10.3.0123456# Inference-only requirements for Hugging Face deployment# tensorflow 2.13 uses Keras 2.x which matches the saved .h5 model formattensorflow-cpu==2.13.0numpy==1.24.3flask==3.0.3pillow==10.3.0
Dockerfile+6-2
requirements-hf.txt+5-4