mindmime's picture
Upload folder using huggingface_hub
a03b3ba verified

A newer version of the Gradio SDK is available: 5.23.3

Upgrade

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