Partager via


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

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

Attributes

Gets the AI service attributes.

Methods

GetTextContentsAsync(ImageContent, PromptExecutionSettings, Kernel, CancellationToken)

Get text content from image content.

Extension Methods

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

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

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.

Applies to