Divooka Reference

Hugging Face

3 nodes

On this page 3

Image Text To Image

Function

Generates a text description from an image URL and an input prompt using a specified HuggingFace model.

Signature
ImageTextToImage -> Text
    imageUrl: Text
    prompt: Text
    model: Text
    configuration: Hugging Face Configuration
string ImageTextToImage(
    string imageUrl,
    string prompt = "Describe this image in one sentence.",
    string model = "Qwen/QVQ-72B-preview",
    HuggingFaceServerless.HuggingFaceConfiguration configuration)

Parameters

nametypedefaultdescription
imageUrlText—The URL of the image.
promptTextDescribe this image in one sentence.The text prompt (default is "Describe this image in one sentence.").
modelTextQwen/QVQ-72B-previewThe model identifier (default is "Qwen/QVQ-72B-preview").
configurationHugging Face Configuration—Optional configuration containing the API key.

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Hugging Face
Package
Generative AI

Text Generation

Function

Generates text based on the provided input using a specified HuggingFace model.

Signature
TextGeneration -> Text
    inputText: Text
    model: Text
    configuration: Hugging Face Configuration
string TextGeneration(
    string inputText,
    string model = "openai-community/gpt2",
    HuggingFaceServerless.HuggingFaceConfiguration configuration)

Parameters

nametypedefaultdescription
inputTextText—The input text prompt.
modelTextopenai-community/gpt2The model identifier (default is "openai-community/gpt2").
configurationHugging Face Configuration—Optional configuration containing the API key.

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Hugging Face
Package
Generative AI

Text To Image

Function

Generates an image from the provided text using a specified HuggingFace model.

Signature
TextToImage -> Pixel Image
    inputText: Text
    model: Text
    width: Integer
    height: Integer
    configuration: Hugging Face Configuration
PixelImage TextToImage(
    string inputText,
    string model = "black-forest-labs/FLUX.1-dev",
    int width = 512,
    int height = 512,
    HuggingFaceServerless.HuggingFaceConfiguration configuration)

Parameters

nametypedefaultdescription
inputTextText—The text prompt for image generation.
modelTextblack-forest-labs/FLUX.1-devThe model identifier (default is "black-forest-labs/FLUX.1-dev").
widthInteger512The desired image width (default is 512).
heightInteger512The desired image height (default is 512).
configurationHugging Face Configuration—Optional configuration containing the API key.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Hugging Face
Package
Generative AI