mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
Upload audio ios (#4071)
* changes * changes * change * changes * changes * changes --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
This commit is contained in:
parent
c7f4a88150
commit
1910df10d9
@ -6,12 +6,13 @@
|
||||
|
||||
## Bug Fixes:
|
||||
|
||||
- Allow users to upload audio files in Audio component on iOS by by [@aliabid94](https://github.com/aliabid94) in [PR 4071](https://github.com/gradio-app/gradio/pull/4071).
|
||||
- Fixes the gradio theme builder error that appeared on launch by [@aliabid94](https://github.com/aliabid94) and [@abidlabs](https://github.com/abidlabs) in [PR 4080](https://github.com/gradio-app/gradio/pull/4080)
|
||||
- Keep Accordion content in DOM by [@aliabid94](https://github.com/aliabid94) in [PR 4070](https://github.com/gradio-app/gradio/pull/4073)
|
||||
- Fixed bug where type hints in functions caused the event handler to crash by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 4068](https://github.com/gradio-app/gradio/pull/4068)
|
||||
- Fix dropdown default value not appearing by [@aliabid94](https://github.com/aliabid94) in [PR 4072](https://github.com/gradio-app/gradio/pull/4072).
|
||||
- Soft theme label color fix by [@aliabid94](https://github.com/aliabid94) in [PR 4070](https://github.com/gradio-app/gradio/pull/4070)
|
||||
Removes extraneous `State` component info from the `/info` route by [@abidlabs](https://github.com/freddyaboulton) in [PR 4107](https://github.com/gradio-app/gradio/pull/4107)
|
||||
- Removes extraneous `State` component info from the `/info` route by [@abidlabs](https://github.com/freddyaboulton) in [PR 4107](https://github.com/gradio-app/gradio/pull/4107)
|
||||
|
||||
## Documentation Changes:
|
||||
|
||||
|
@ -238,7 +238,12 @@
|
||||
function handle_load({
|
||||
detail
|
||||
}: {
|
||||
detail: { data: string; name: string; size: number; is_example: boolean };
|
||||
detail: {
|
||||
data: string;
|
||||
name: string;
|
||||
size: number;
|
||||
is_example: boolean;
|
||||
};
|
||||
}) {
|
||||
value = detail;
|
||||
dispatch("change", { data: detail.data, name: detail.name });
|
||||
@ -276,7 +281,12 @@
|
||||
{/if}
|
||||
</div>
|
||||
{:else if source === "upload"}
|
||||
<Upload filetype="audio/*" on:load={handle_load} bind:dragging>
|
||||
<!-- explicitly listed out audio mimetypes due to iOS bug not recognizing audio/* -->
|
||||
<Upload
|
||||
filetype="audio/aac,audio/midi,audio/mpeg,audio/ogg,audio/wav,audio/x-wav,audio/opus,audio/webm,audio/flac,audio/vnd.rn-realaudio,audio/x-ms-wma,audio/x-aiff,audio/amr,audio/*"
|
||||
on:load={handle_load}
|
||||
bind:dragging
|
||||
>
|
||||
<slot />
|
||||
</Upload>
|
||||
{/if}
|
||||
|
Loading…
Reference in New Issue
Block a user