运行main时候报错
运行main时候提示:
Traceback (most recent call last):
File "D:\anaconda3\envs\cv\lib\inspect.py", line 1285, in getfullargspec
sig = _signature_from_callable(func,
File "D:\anaconda3\envs\cv\lib\inspect.py", line 2390, in _signature_from_callable
raise TypeError('{!r} is not a callable object'.format(obj))
TypeError: None is not a callable object
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\WorkSpace\learn_gradio\main.py", line 3, in <module>
demo = gr.Interface(fn=None,inputs="text",outputs="text")
File "D:\anaconda3\envs\cv\lib\site-packages\gradio\interface.py", line 376, in __init__
param_names = inspect.getfullargspec(self.fn)[0]
File "D:\anaconda3\envs\cv\lib\inspect.py", line 1295, in getfullargspec
raise TypeError('unsupported callable') from ex
TypeError: unsupported callable
IMPORTANT: You are using gradio version 3.50.2, however version 4.44.1 is available, please upgrade.
这是什么原因呢
相关截图:
正在回答 回答被采纳积分+1
- 参与学习 547 人
- 解答问题 164 个
从AI零基础入门,打通视觉,NLP,机器&深度学习,推荐搜索,AIGC,大模型 引领行业知识体系+工业级多领域综合项目+资深专业讲师团+全方位贴心服务 助力你快速成为新时代抢手人才,多领域灵活就业
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧