HuggingFaceGenerationRequest

@Serializable
data class HuggingFaceGenerationRequest(val inputs: String, val parameters: HuggingFaceGenerationRequest.Parameters = Parameters())(source)

Carries HuggingFaceGenerationRequest data through the SDAI network layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(inputs: String, parameters: HuggingFaceGenerationRequest.Parameters = Parameters())

Types

Link copied to clipboard
@Serializable
data class Parameters(val width: Int? = null, val height: Int? = null, val text: String? = null, val negativePrompt: String? = null, val seed: String? = null, val numInferenceSteps: Int? = null, val guidanceScale: Float? = null)

Properties

Link copied to clipboard
@SerialName(value = "inputs")
val inputs: String

Exposes the inputs value used by the SDAI network layer.

Link copied to clipboard
@SerialName(value = "parameters")
val parameters: HuggingFaceGenerationRequest.Parameters

Exposes the parameters value used by the SDAI network layer.