feylur commited on
Commit
b0ed745
·
verified ·
1 Parent(s): 6bf2599

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -68,11 +68,14 @@ RUN pip install --no-cache-dir \
68
  av \
69
  omegaconf
70
 
71
- # Step 7: Install Gradio for web interface (Hugging Face Spaces)
72
- RUN pip install --no-cache-dir gradio
 
73
 
74
- # Step 8: Force reinstall huggingface_hub to lock version (prevent auto-upgrades)
75
- RUN pip install --force-reinstall --no-cache-dir huggingface_hub==0.20.0 --no-deps
 
 
76
 
77
  # Copy application code
78
  COPY . /app
 
68
  av \
69
  omegaconf
70
 
71
+ # Step 7: Install Gradio COMPATIBLE with huggingface_hub==0.20.0
72
+ # Gradio 4.x requires newer huggingface_hub, so we use Gradio 3.x
73
+ RUN pip install --no-cache-dir gradio==3.50.2
74
 
75
+ # Step 8: Install additional web dependencies
76
+ RUN pip install --no-cache-dir \
77
+ fastapi \
78
+ uvicorn
79
 
80
  # Copy application code
81
  COPY . /app