@huggingface/inference
Version:
Typescript client for the Hugging Face Inference Providers and Inference Endpoints
18 lines • 761 B
TypeScript
import type { ZeroShotImageClassificationInput, ZeroShotImageClassificationOutput } from "@huggingface/tasks";
import type { BaseArgs, Options } from "../../types";
/**
* @deprecated
*/
interface LegacyZeroShotImageClassificationInput {
inputs: {
image: Blob | ArrayBuffer;
};
}
export type ZeroShotImageClassificationArgs = BaseArgs & (ZeroShotImageClassificationInput | LegacyZeroShotImageClassificationInput);
/**
* Classify an image to specified classes.
* Recommended model: openai/clip-vit-large-patch14-336
*/
export declare function zeroShotImageClassification(args: ZeroShotImageClassificationArgs, options?: Options): Promise<ZeroShotImageClassificationOutput>;
export {};
//# sourceMappingURL=zeroShotImageClassification.d.ts.map