Lingua

HuggingFaceImageToTextService Class

Definition

HuggingFace image to text service

public sealed class HuggingFaceImageToTextService : Microsoft.SemanticKernel.ImageToText.IImageToTextService
type HuggingFaceImageToTextService = class
    interface IImageToTextService
    interface IAIService
Public NotInheritable Class HuggingFaceImageToTextService
Implements IImageToTextService
Inheritance
HuggingFaceImageToTextService
Implements

Constructors

Name Description
HuggingFaceImageToTextService(String, Uri, String, HttpClient, ILoggerFactory)

Initializes a new instance of the HuggingFaceImageToTextService class.

HuggingFaceImageToTextService(Uri, String, HttpClient, ILoggerFactory)

Initializes a new instance of the HuggingFaceImageToTextService class.

Properties

Name Description
Attributes

Gets the AI service attributes.

Methods

Name Description
GetTextContentsAsync(ImageContent, PromptExecutionSettings, Kernel, CancellationToken)

Get text content from image content.

Extension Methods

Name Description
GetApiVersion(IAIService)

Gets the API version from service's Attributes

GetEndpoint(IAIService)

Gets the endpoint from service's Attributes.

GetModelId(IAIService)

Gets the model identifier from service's Attributes.

GetTextContentAsync(IImageToTextService, ImageContent, PromptExecutionSettings, Kernel, CancellationToken)

Get a single text generation result for the prompt and settings.

Applies to