2
0
mirror of https://github.com/gradio-app/gradio.git synced 2025-03-19 12:00:39 +08:00
pngwn 1e5e787999
chore: update versions ()
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-16 12:28:13 -08:00
..
2024-02-16 12:28:13 -08:00
2023-12-04 14:37:04 -08:00
2024-02-16 12:28:13 -08:00
2023-10-31 04:46:02 +00:00

@gradio/highlightedtext

<script>
    import { BaseStaticHighlightedText, BaseInteractiveHighlightedText } from `@gradio/highlightedtext`;
</script>

BaseStaticHighlightedText

	export let value: {
		token: string;
		class_or_confidence: string | number | null;
	}[] = [];
	export let show_legend = false;
	export let color_map: Record<string, string> = {};
	export let selectable = false;

BaseInteractiveHighlightedText

	export let value: {
		token: string;
		class_or_confidence: string | number | null;
	}[] = [];
	export let show_legend = false;
	export let color_map: Record<string, string> = {};
	export let selectable = false;