StableDiffusionCppResource.addHuggingFaceModel

Method
📦 CommunityToolkit.Aspire.Hosting.StableDiffusionCpp v13.6.1
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
repositorystringThe Hugging Face repository identifier.
fileNamestringThe model file path within the repository.
revisionstringoptional= mainThe repository revision. Defaults to `main`.
StableDiffusionCppModelResource

Defined on

This method is defined on the following type: