amitlals commited on
Commit
09d3e37
·
1 Parent(s): 963c1d2

Force reinstall huggingface-hub 0.24.7 after Gradio

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -25,9 +25,9 @@ COPY requirements.txt .
25
  RUN pip install --no-cache-dir --upgrade pip && \
26
  pip install --no-cache-dir -r requirements.txt
27
 
28
- # Install compatible gradio version with pinned huggingface_hub
29
- RUN pip install --no-cache-dir "huggingface_hub==0.24.7" && \
30
- pip install --no-cache-dir "gradio==5.6.0"
31
 
32
  # Install SAP-RPT-1-OSS from GitHub (with --no-deps to avoid conflicts)
33
  RUN pip install --no-cache-dir --no-deps git+https://github.com/SAP-samples/sap-rpt-1-oss || echo "SAP-RPT-1-OSS installation skipped"
 
25
  RUN pip install --no-cache-dir --upgrade pip && \
26
  pip install --no-cache-dir -r requirements.txt
27
 
28
+ # Install compatible gradio version and then force-install huggingface-hub 0.24.7
29
+ RUN pip install --no-cache-dir "gradio==5.6.0" && \
30
+ pip install --no-cache-dir --force-reinstall "huggingface-hub==0.24.7"
31
 
32
  # Install SAP-RPT-1-OSS from GitHub (with --no-deps to avoid conflicts)
33
  RUN pip install --no-cache-dir --no-deps git+https://github.com/SAP-samples/sap-rpt-1-oss || echo "SAP-RPT-1-OSS installation skipped"