今天在调试python应用的时候发生报错,部分错误信息如下:
Traceback (most recent call last):
File “D:\python\CodeFormer\app.py”, line 261, in
gr.inputs.Image(type=”filepath”, label=”Input”),
AttributeError: module ‘gradio’ has no attribute ‘inputs’
说gradio里没有Inputs,其实就是版本问题,脚本是用老版本gradio写的,先卸载gradio,重新安装3.50版本即可
pip install gradio==3.50