报错:
Traceback (most recent call last):
File "/home/bingxing2/ailab/group/ai4agr/wzf/LLM/models/Chinese-LLaMA-Alpaca/scripts/inference/gradio_demo.py", line 297, in <module>
user_input = gr.Textbox(
AttributeError: 'Textbox' object has no attribute 'style'
原因:安装的第三方库gradio版本太高,降低版本即可。
当前安装的4.31.3版本 降低到3.50.0
pip install gradio==3.50.0