StableDiffusionCppResource.AddHuggingFaceModel
Method
type StableDiffusionCppResource interface { // ... omitted for brevity AddHuggingFaceModel( repository string, fileName string, options ...*AddHuggingFaceModelOptions, ) StableDiffusionCppModelResource}Signature
method
AddHuggingFaceModel builderAdds a Hugging Face model that is downloaded before the container starts.
AddHuggingFaceModel( repository string, fileName string, options ...*AddHuggingFaceModelOptions,) StableDiffusionCppModelResourceParameters
repositorystringThe Hugging Face repository identifier.fileName stringThe model file path within the repository.options...*AddHuggingFaceModelOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddHuggingFaceModelOptions argument.
Revision*stringThe repository revision. Defaults to main.Returns
StableDiffusionCppModelResource A builder for the child model resource.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: