Quick Fix: Fixes autoplay parameter for Audio/Video in Chatbot (#10129)

* chat fixes

* add changeset

* autoplay fix

* add changeset

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
This commit is contained in:
Dawood Khan 2024-12-10 12:34:57 -05:00 committed by GitHub
parent fe7a9db659
commit 2b5530274a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,6 @@
---
"@gradio/chatbot": patch
"gradio": patch
---
fix:Quick Fix: Fixes autoplay parameter for Audio/Video in Chatbot

View File

@ -44,7 +44,7 @@
show_share_button={true}
{i18n}
label=""
waveform_settings={{}}
waveform_settings={{ autoplay: props.autoplay }}
waveform_options={{}}
show_download_button={allow_file_downloads}
on:load
@ -52,7 +52,7 @@
{:else if type === "video"}
<svelte:component
this={components[type]}
autoplay={true}
autoplay={props.autoplay}
value={value.video || value}
show_label={false}
show_share_button={true}