Skip to content
DocsTry Aspire
DocsTry

addHuggingFaceModel

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

Signature

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

Applies to

This method applies to the following types: