StableDiffusionCppResource.addHuggingFaceModel
Method
interface StableDiffusionCppResource { // ... omitted for brevity addHuggingFaceModel( repository: string, fileName: string, revision?: string): StableDiffusionCppModelResource;}Signature
method
addHuggingFaceModel builderAdds a Hugging Face model that is downloaded before the container starts.
addHuggingFaceModel( repository: string, fileName: string, revision?: string): StableDiffusionCppModelResourceParameters
repositorystringThe Hugging Face repository identifier.fileName stringThe model file path within the repository.revisionstringoptional= mainThe repository revision. Defaults to `main`.Returns
StableDiffusionCppModelResource Defined on
This method is defined on the following type: