Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
QvQKing opened this issue Nov 7, 2023 · 3 comments · May be fixed by #88
Open

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

QvQKing opened this issue Nov 7, 2023 · 3 comments · May be fixed by #88

Comments

@QvQKing
Copy link

QvQKing commented Nov 7, 2023

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
Copy link

tshrjn commented Nov 10, 2023

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants