OpenMotionLab / MotionGPT

[NeurIPS 2023] MotionGPT: Human Motion as a Foreign Language, a unified motion-language generation model using LLMs
https://motion-gpt.github.io
MIT License
1.38k stars 85 forks source link

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

Open QvQKing opened 8 months ago

QvQKing commented 8 months ago

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!

tshrjn commented 8 months ago

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

FishWoWater commented 6 months ago

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

Gelercatty commented 5 months ago

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