Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddHuggingFaceModel

Method
📦 CommunityToolkit.Aspire.Hosting.StableDiffusionCpp v13.6.1
func (StableDiffusionCppResource) AddHuggingFaceModel(
repository string,
fileName string,
options ...*AddHuggingFaceModelOptions,
) StableDiffusionCppModelResource

Signature

methodAddHuggingFaceModelbuilder
Adds a Hugging Face model that is downloaded before the container starts.
AddHuggingFaceModel(
repository string,
fileName string,
options ...*AddHuggingFaceModelOptions,
) StableDiffusionCppModelResource
repositorystringThe Hugging Face repository identifier.
fileNamestringThe model file path within the repository.
options...*AddHuggingFaceModelOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddHuggingFaceModelOptions argument.

Revision*stringThe repository revision. Defaults to main.
StableDiffusionCppModelResource

A builder for the child model resource.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: