Nior18867 commited on
Commit
e420282
·
verified ·
1 Parent(s): 884208e

Fix: python:3.10 + gradio 6.x pinned deps

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -1
  2. requirements.txt +9 -0
Dockerfile CHANGED
@@ -2,7 +2,8 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- RUN pip install --no-cache-dir gradio requests>=2.28.0
 
6
 
7
  COPY app.py .
8
 
 
2
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
 
8
  COPY app.py .
9
 
requirements.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ gradio>=6.0,<7.0
2
+ gradio_client>=2.0,<3.0
3
+ huggingface_hub>=1.0,<2.0
4
+ jinja2>=3.1,<4.0
5
+ starlette>=1.0,<2.0
6
+ fastapi>=0.115,<1.0
7
+ pydub>=0.25
8
+ requests>=2.28.0
9
+ uvicorn>=0.30