DjPapzin commited on
Commit
48e30fb
·
1 Parent(s): 386df44

build: Pin tensorflow version to 2.12

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -32,9 +32,9 @@ COPY frontend/FINAL_MODEL.keras /home/user/app/
32
  RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
33
  ENV PATH="/home/user/.cargo/bin:${PATH}"
34
 
35
- # Install Python dependencies
36
  COPY requirements.txt /tmp/requirements.txt
37
- RUN pip install --no-cache-dir -r /tmp/requirements.txt
38
 
39
  # Install Streamlit, uvicorn, and spaces (for Hugging Face Spaces)
40
- RUN pip install --no-cache-dir streamlit==1.37.1 "uvicorn>=0.14.0" spaces
 
32
  RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
33
  ENV PATH="/home/user/.cargo/bin:${PATH}"
34
 
35
+ # Install Python dependencies - Specifying tensorflow version
36
  COPY requirements.txt /tmp/requirements.txt
37
+ RUN pip install --no-cache-dir -r /tmp/requirements.txt tensorflow==2.12
38
 
39
  # Install Streamlit, uvicorn, and spaces (for Hugging Face Spaces)
40
+ RUN pip install --no-cache-dir streamlit==1.37.1 "uvicorn>=0.14.0" spaces