mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-21 01:01:05 +08:00
4d520a8a7b
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
shared | ||
CHANGELOG.md | ||
HighlightedText.stories.svelte | ||
highlightedtext.test.ts | ||
Index.svelte | ||
package.json | ||
README.md |
@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 show_inline_category = true;
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;