File size: 625 Bytes
bf6818d 4174d3c bf6818d 4174d3c bf6818d 4174d3c bf6818d |
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 27 28 |
import type { FileData } from "@gradio/client";
import type { CustomButton } from "@gradio/utils";
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 | CustomButton)[];
}
export interface AnnotatedImageEvents {
change: never;
select: { index: number; value: string };
custom_button_click: { id: number };
}
|