StableDiffusionCppResource.addNamedHuggingFaceModel

Method
📦 CommunityToolkit.Aspire.Hosting.StableDiffusionCpp v13.6.1
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
namestringThe child model resource name.
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: