AddHuggingFaceModel
Method
func (StableDiffusionCppResource) AddHuggingFaceModel( repository string, fileName string, options ...*AddHuggingFaceModelOptions,) StableDiffusionCppModelResourceSignature
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().
Applies to
This method applies to the following types: