HuggingFaceImageToTextService Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
GetEndpoint(IAIService) |
Gets the endpoint from |
GetModelId(IAIService) |
Gets the model identifier from |