addNamedHuggingFaceModel
Method
interface StableDiffusionCppResource { // ... omitted for brevity addNamedHuggingFaceModel( name: string, repository: string, fileName: string, revision?: string): StableDiffusionCppModelResource;}Signature
method
addNamedHuggingFaceModel builderAdds a named Hugging Face model that is downloaded before the container starts.
addNamedHuggingFaceModel( name: string, repository: string, fileName: string, revision?: string): StableDiffusionCppModelResourceParameters
namestringThe child model resource name.repositorystringThe Hugging Face repository identifier.fileName stringThe model file path within the repository.revisionstringoptional= mainThe repository revision. Defaults to `main`.Returns
StableDiffusionCppModelResource Applies to
This method applies to the following types: