gradio/js/image
pngwn e9bb445a63
chore: update versions (#6308)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-07 15:50:13 -08:00
..
shared strip dangling svelte imports (#6171) 2023-10-31 05:31:33 +00:00
CHANGELOG.md chore: update versions (#6308) 2023-11-07 15:50:13 -08:00
Example.svelte
Image.stories.svelte Fix stories (#6244) 2023-11-02 12:10:11 +00:00
Image.test.ts
Index.svelte Ensure the statustracker for gr.Image displays in static mode (#6213) 2023-11-01 15:54:51 +00:00
package.json chore: update versions (#6308) 2023-11-07 15:50:13 -08:00
README.md

@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;