diff --git a/setup.cfg b/setup.cfg index 62229386d6..5c3aa46d7b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -26,7 +26,7 @@ packages = find: install_requires = xoscar>=0.3.0 torch - gradio>=3.39.0 + gradio==4.26.0 typer[all]<0.12.0 # fix typer required by gradio pillow click @@ -34,12 +34,12 @@ install_requires = tabulate requests pydantic - fastapi + fastapi==0.110.3 uvicorn huggingface-hub>=0.19.4 typing_extensions - fsspec>=2023.1.0,<=2023.10.0 - s3fs + fsspec==2023.10.0 + s3fs==2023.10.0 modelscope>=1.10.0 sse_starlette>=1.6.5 # ensure_bytes API break change: https://github.com/sysid/sse-starlette/issues/65 openai>1 # For typing diff --git a/xinference/deploy/docker/cpu.Dockerfile b/xinference/deploy/docker/cpu.Dockerfile index 5185781910..15e02a3590 100644 --- a/xinference/deploy/docker/cpu.Dockerfile +++ b/xinference/deploy/docker/cpu.Dockerfile @@ -22,7 +22,7 @@ RUN python -m pip install --upgrade -i "$PIP_INDEX" pip && \ pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu && \ pip install -i "$PIP_INDEX" \ "xoscar>=0.3.0" \ - "gradio>=3.39.0" \ + "gradio==4.26.0" \ "typer[all]<0.12.0" \ pillow \ click \ @@ -30,12 +30,12 @@ RUN python -m pip install --upgrade -i "$PIP_INDEX" pip && \ tabulate \ requests \ pydantic \ - fastapi \ + "fastapi==0.110.3" \ uvicorn \ "huggingface-hub>=0.19.4" \ typing_extensions \ - "fsspec>=2023.1.0,<=2023.10.0" \ - s3fs \ + "fsspec==2023.10.0" \ + "s3fs==2023.10.0" \ "modelscope>=1.10.0" \ "sse_starlette>=1.6.5" \ "openai>1" \