版本
python: 3.11
gradio: 5.2.10
pydantic: 2.11.1
错误信息:TypeError: argument of type 'bool' is not iterable
这个问题是gradio 报出来的,这是一个bug
github上有解决方案,将pydantic版本回退到: 2.10.6 可以解决
pip uninstall pydantic
pip install pydantic==2.10.6
llama-factory webui启动成功
用官方的命令安装的都是 最新版本: pip install -e ".[torch,metrics]"
所以要检查一下
pip list