gradio/js/image
Abubakar Abid 9cefd2e90a
Refactor examples so they accept data in the same format as is returned by function, rename .as_example() to .process_example() (#6933)
* image-editor-examples

* add changeset

* add changeset

* delete changeset

* change to process_example()

* add changeset

* changes for all components until dataset.py

* rename

* fix checkboxgroup

* format

* changes

* add changeset

* changes

* add changeset

* radio

* add changeset

* changes

* add changeset

* changes

* examples

* remove print

* fix

* clean

* add changeset

* fix tests

* fix tests

* fix test

* fix

* add changeset

* fix video example

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 16:35:25 -08:00
..
shared Fix issue with Webcam Recording (#6885) 2024-01-05 19:18:59 -05:00
CHANGELOG.md chore: update versions (#6960) 2024-01-11 01:42:25 +04:00
Example.svelte Refactor examples so they accept data in the same format as is returned by function, rename .as_example() to .process_example() (#6933) 2024-01-10 16:35:25 -08:00
Image.stories.svelte Fix webcam when streaming=True (#6865) 2023-12-21 19:50:11 +01:00
Image.test.ts Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
Index.svelte Fix functional tests (#6931) 2024-01-04 15:39:16 -08:00
package.json chore: update versions (#6960) 2024-01-11 01:42:25 +04:00
README.md Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00

@gradio/image

<script>
	import { BaseImageUploader, BaseStaticImage, Webcam, BaseExample } from "@gradio/image";
</script>

BaseImageUploader

	export let sources: ("clipboard" | "webcam" | "upload")[] = [
		"upload",
		"clipboard",
		"webcam"
	];
	export let streaming = false;
	export let pending = false;
	export let mirror_webcam: boolean;
	export let selectable = false;
	export let root: string;
	export let i18n: I18nFormatter;

BaseStaticImage

	export let value: null | FileData;
	export let label: string | undefined = undefined;
	export let show_label: boolean;
	export let show_download_button = true;
	export let selectable = false;
	export let show_share_button = false;
	export let root: string;
	export let i18n: I18nFormatter;

Webcam

	export let streaming = false;
	export let pending = false;

	export let mode: "image" | "video" = "image";
	export let mirror_webcam: boolean;
	export let include_audio: boolean;
	export let i18n: I18nFormatter;

BaseExample

	export let value: string;
	export let samples_dir: string;
	export let type: "gallery" | "table";
	export let selected = false;