File size: 519 Bytes
3adfe70 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import type { FileData } from "@gradio/client";
export interface Annotation {
image: FileData;
label: string;
}
export interface AnnotatedImageValue {
image: FileData;
annotations: Annotation[];
}
export interface AnnotatedImageProps {
value: AnnotatedImageValue | null;
show_legend: boolean;
height: number | undefined;
width: number | undefined;
color_map: Record<string, string>;
buttons: string[];
}
export interface AnnotatedImageEvents {
change: never;
select: { index: number; value: string };
}
|