mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-07 11:46:51 +08:00
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:
parent
fe7a9db659
commit
2b5530274a
6
.changeset/hot-knives-hope.md
Normal file
6
.changeset/hot-knives-hope.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/chatbot": patch
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Quick Fix: Fixes autoplay parameter for Audio/Video in Chatbot
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user