gradio/js/image
Abubakar Abid b1b78c2168
Fix .select for gr.Image, gr.CheckboxGroup (#6942)
* fix .select for Image, CheckboxGroup

* add changeset

* generate notebook

* fix

* add changeset

* fixes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-04 07:57:18 -08:00
..
shared Fix .select for gr.Image, gr.CheckboxGroup (#6942) 2024-01-04 07:57:18 -08:00
CHANGELOG.md chore: update versions (#6855) 2023-12-22 13:05:17 -08:00
Example.svelte Remove the styles from the Image/Video primitive components and Fix the container styles (#6726) 2023-12-11 23:15:02 +01: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 Improve source selection UX (#6766) 2023-12-19 19:24:08 +00:00
package.json Lite: Chatbot (#6897) 2024-01-02 11:41:10 +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;