From f9e3b65e8421286756eedebb47acd4b7dccd070d Mon Sep 17 00:00:00 2001 From: Zhivago-Sizov <55059377+Zhivago-Sizov@users.noreply.github.com> Date: Wed, 3 Apr 2024 03:26:55 +0000 Subject: [PATCH] Fix TypeError: Audio.__init__() got an unexpected keyword argument 'source'. Should be list type --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index b47e219..909a7fb 100644 --- a/app.py +++ b/app.py @@ -356,7 +356,7 @@ def bot_example(history, responses): ]) chat_instruct_sum = gr.State([(None, ''' 👋 Hi, I'm MotionGPT! I can generate realistic human motion from text, or generate text from motion. - + 1. You can chat with me in pure text like generating human motion following your descriptions. 2. After generation, you can click the button in the top right of generation human motion result to download the human motion video or feature stored in .npy format. 3. With the human motion feature file downloaded or got from dataset, you are able to ask me to translate it! @@ -513,7 +513,7 @@ def bot_example(history, responses): container=False) with gr.Row(): - aud = gr.Audio(source="microphone", + aud = gr.Audio(sources=["microphone"], label="Speak input", type='filepath') btn = gr.UploadButton("📁 Upload motion",