From 704fda9ef3519c976b7b2c32783b03bddb398deb Mon Sep 17 00:00:00 2001 From: cheny Date: Wed, 6 May 2026 09:08:03 +0800 Subject: [PATCH] fix(agent): Security vulnerabilities in pip packages. --- README.md | 6 +++--- README_zh.md | 6 +++--- docs/en-US/01_get_started.md | 6 +++--- .../01_\345\277\253\351\200\237\345\274\200\345\247\213.md" | 6 +++--- requirements.txt | 6 +++--- setup.py | 6 +++--- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index be77f14..96b2a5f 100644 --- a/README.md +++ b/README.md @@ -96,10 +96,10 @@ The following packages are required. ```yaml coloredlogs==15.0.1 -gradio>=5.31.0 +gradio>=6.0.0 matplotlib==3.7.1 numpy>=1.25.0 -Pillow==10.3.0 +Pillow>=12.2.0 Requests>=2.32.4 scikit-image==0.22.0 torch_summary==1.4.5 @@ -108,7 +108,7 @@ pytorch_fid==0.3.0 fastapi==0.115.6 tensorboard==2.19.0 tensorboardX==2.6.1 -transformers==4.56.1 +transformers>=5.0.0 # If you want to use flash attention, please install flash-attn. # Compile your own environment: pip install flash-attn --no-build-isolation diff --git a/README_zh.md b/README_zh.md index 1d40aa0..ad0511e 100644 --- a/README_zh.md +++ b/README_zh.md @@ -96,10 +96,10 @@ pip install iddm ```yaml coloredlogs==15.0.1 -gradio>=5.31.0 +gradio>=6.0.0 matplotlib==3.7.1 numpy>=1.25.0 -Pillow==10.3.0 +Pillow>=12.2.0 Requests>=2.32.4 scikit-image==0.22.0 torch_summary==1.4.5 @@ -108,7 +108,7 @@ pytorch_fid==0.3.0 fastapi==0.115.6 tensorboard==2.19.0 tensorboardX==2.6.1 -transformers==4.56.1 +transformers>=5.0.0 # 如果您想使用 flash attention,请安装 flash-attn # 编译自己的环境:pip install flash-attn --no-build-isolation diff --git a/docs/en-US/01_get_started.md b/docs/en-US/01_get_started.md index 43ce5d0..12e718e 100644 --- a/docs/en-US/01_get_started.md +++ b/docs/en-US/01_get_started.md @@ -26,10 +26,10 @@ The following packages are required. ```yaml coloredlogs==15.0.1 -gradio>=5.31.0 +gradio>=6.0.0 matplotlib==3.7.1 numpy>=1.25.0 -Pillow==10.3.0 +Pillow>=12.2.0 Requests>=2.32.4 scikit-image==0.22.0 torch_summary==1.4.5 @@ -38,7 +38,7 @@ pytorch_fid==0.3.0 fastapi==0.115.6 tensorboard==2.19.0 tensorboardX==2.6.1 -transformers==4.56.1 +transformers>=5.0.0 # If you want to use flash attention, please install flash-attn. # Compile your own environment: pip install flash-attn --no-build-isolation diff --git "a/docs/zh-Hans/01_\345\277\253\351\200\237\345\274\200\345\247\213.md" "b/docs/zh-Hans/01_\345\277\253\351\200\237\345\274\200\345\247\213.md" index dca513b..ad123ac 100644 --- "a/docs/zh-Hans/01_\345\277\253\351\200\237\345\274\200\345\247\213.md" +++ "b/docs/zh-Hans/01_\345\277\253\351\200\237\345\274\200\345\247\213.md" @@ -28,10 +28,10 @@ pip install iddm ```yaml coloredlogs==15.0.1 -gradio>=5.31.0 +gradio>=6.0.0 matplotlib==3.7.1 numpy>=1.25.0 -Pillow==10.3.0 +Pillow>=12.2.0 Requests>=2.32.4 scikit-image==0.22.0 torch_summary==1.4.5 @@ -40,7 +40,7 @@ pytorch_fid==0.3.0 fastapi==0.115.6 tensorboard==2.19.0 tensorboardX==2.6.1 -transformers==4.56.1 +transformers>=5.0.0 # 如果您想使用 flash attention,请安装 flash-attn # 编译自己的环境:pip install flash-attn --no-build-isolation diff --git a/requirements.txt b/requirements.txt index 6c7e8f7..ca71e3e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ coloredlogs==15.0.1 -gradio>=5.31.0 +gradio>=6.0.0 matplotlib==3.7.1 numpy>=1.25.0 -Pillow==10.3.0 +Pillow>=12.2.0 Requests>=2.32.4 scikit-image==0.22.0 torch_summary==1.4.5 @@ -11,7 +11,7 @@ pytorch_fid==0.3.0 fastapi==0.115.6 tensorboard==2.19.0 tensorboardX==2.6.1 -transformers==4.56.1 +transformers>=5.0.0 # If you want to use flash attention, please install flash-attn. # Compile your own environment: pip install flash-attn --no-build-isolation diff --git a/setup.py b/setup.py index 684a8aa..13a219b 100644 --- a/setup.py +++ b/setup.py @@ -37,10 +37,10 @@ def get_long_description(): if __name__ == "__main__": package_list = [ "coloredlogs==15.0.1", - "gradio>=5.31.0", + "gradio>=6.0.0", "matplotlib==3.7.1", "numpy>=1.25.0", - "Pillow==10.3.0", + "Pillow==12.2.0", "Requests>=2.32.4", "scikit-image==0.22.0", "torch_summary==1.4.5", @@ -49,7 +49,7 @@ def get_long_description(): "fastapi==0.115.6", "tensorboard==2.19.0", "tensorboardX==2.6.1", - "transformers==4.56.1", + "transformers==5.0.0", "torch>=1.10.0", "torchvision>=0.10.0" ]