UNPKG

@huggingface/inference

Version:

Typescript client for the Hugging Face Inference Providers and Inference Endpoints

9 lines 484 B
import type { ImageToTextInput, ImageToTextOutput } from "@huggingface/tasks"; import type { BaseArgs, Options } from "../../types"; import type { LegacyImageInput } from "./utils"; export type ImageToTextArgs = BaseArgs & (ImageToTextInput | LegacyImageInput); /** * This task reads some image input and outputs the text caption. */ export declare function imageToText(args: ImageToTextArgs, options?: Options): Promise<ImageToTextOutput>; //# sourceMappingURL=imageToText.d.ts.map