Skip to content
DocsTry Aspire
DocsTry

StableDiffusionCppResource.addNamedHuggingFaceModel

Method
📦 CommunityToolkit.Aspire.Hosting.StableDiffusionCpp v13.5.0
interface StableDiffusionCppResource {
// ... omitted for brevity
addNamedHuggingFaceModel(
name: string,
repository: string,
fileName: string,
revision?: string): StableDiffusionCppModelResource;
}

Signature

methodaddNamedHuggingFaceModelbuilder
Adds a named Hugging Face model that is downloaded before the container starts.
addNamedHuggingFaceModel(
name: string,
repository: string,
fileName: string,
revision?: string): StableDiffusionCppModelResource
namestring
repositorystring
fileNamestring
revisionstringoptional= main
StableDiffusionCppModelResource

Defined on

This method is defined on the following type: