2
0
mirror of https://github.com/gradio-app/gradio.git synced 2025-03-19 12:00:39 +08:00
Yuichiro Tachibana (Tsuchiya) b67115e8e6
Lite: Make the Examples component display media files using pseudo HTTP requests to the Wasm server ()
* Create a Wasm-compatible <Image> component in @gradio/lite and use it in @gradio/image/example/Image.svelte

* add changeset

* Fix Image styling

* Move js/wasm/svelte/Image.svelte -> js/image/static/Image.svelte

* Shorten CSS class name

* Create Wasm-compatible video components

* add changeset

* Move the Wasm-compatible `Image` from `static` to `shared`

* Create Wasm-compatible audio components

* Fix `resolve_wasm_src()` to return the passed `src` as-is when the URL is not HTTP or refering to remote

* add changeset

* Fix `resolve_wasm_src()`

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-10-17 01:26:49 +09:00
..
2023-10-05 14:10:45 -07:00

@gradio/audio

<script>
	import { Audio } from "@gradio/audio";
</script>

<Audio
	value="string"
	theme="string"
	name="string"
	source="microphone | upload"
	on:change={e.detail === value}
/>