StableDiffusionCppResource.AddHuggingFaceModel

Method
📦 CommunityToolkit.Aspire.Hosting.StableDiffusionCpp v13.6.1
type StableDiffusionCppResource interface {
// ... omitted for brevity
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().

Defined on

This method is defined on the following type: