export async function annotateImageByFile()

in src/frontend/src/queries.ts [120:130]


export async function annotateImageByFile(
  file: File,
  features: string[]
): Promise<ImageAnnotationResult> {
  const formData = new FormData();
  formData.append("image", file);
  formData.append("features", features.join(","));
  return client
    .post<ImageAnnotationResult>("/annotate", formData)
    .then((response) => response.data);
}