MotionGPT icon indicating copy to clipboard operation
MotionGPT copied to clipboard

TypeError: Audio.__init__() got an unexpected keyword argument 'source'

Open QvQKing opened this issue 2 years ago • 3 comments

Traceback (most recent call last): File "/root/autodl-tmp/MotionGPT-main/app.py", line 512, in aud = gr.Audio(source="microphone", File "/root/miniconda3/envs/mgpt/lib/python3.10/site-packages/gradio/component_meta.py", line 146, in wrapper return fn(self, **kwargs) TypeError: Audio.init() got an unexpected keyword argument 'source' Hello, I want to know how to solve this problem. Thanks!

QvQKing avatar Nov 07 '23 06:11 QvQKing

Gradio had a recent major upgrade, that's probably why it has some changes in api.

Try downgrading the gradio library: pip install gradio==3.41.0

tshrjn avatar Nov 10 '23 17:11 tshrjn

For me (2023.12.23) Erorr still occurs with gradio == 3.41.0: TypeError: Audio.__init__() got an unexpected keyword argument 'source'

pip install gradio==3.41.0 is ok

FishWoWater avatar Dec 23 '23 07:12 FishWoWater

i tried but another error exist, so i tried gradio == 3.44.0 is ok, perfect solved

Gelercatty avatar Jan 23 '24 08:01 Gelercatty