Hugging Face
3 nodes
On this page 3
Image Text To Image
FunctionGenerates 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 Configurationstring ImageTextToImage(
string imageUrl,
string prompt = "Describe this image in one sentence.",
string model = "Qwen/QVQ-72B-preview",
HuggingFaceServerless.HuggingFaceConfiguration configuration)Parameters
| name | type | default | description |
|---|---|---|---|
| imageUrl | Text | — | The URL of the image. |
| prompt | Text | Describe this image in one sentence. | The text prompt (default is "Describe this image in one sentence."). |
| model | Text | Qwen/QVQ-72B-preview | The model identifier (default is "Qwen/QVQ-72B-preview"). |
| configuration | Hugging Face Configuration | — | Optional configuration containing the API key. |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Hugging Face
- Package
- Generative AI
Text Generation
FunctionGenerates text based on the provided input using a specified HuggingFace model.
Signature
TextGeneration -> Text
inputText: Text
model: Text
configuration: Hugging Face Configurationstring TextGeneration(
string inputText,
string model = "openai-community/gpt2",
HuggingFaceServerless.HuggingFaceConfiguration configuration)Parameters
| name | type | default | description |
|---|---|---|---|
| inputText | Text | — | The input text prompt. |
| model | Text | openai-community/gpt2 | The model identifier (default is "openai-community/gpt2"). |
| configuration | Hugging Face Configuration | — | Optional configuration containing the API key. |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Hugging Face
- Package
- Generative AI
Text To Image
FunctionGenerates 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 ConfigurationPixelImage TextToImage(
string inputText,
string model = "black-forest-labs/FLUX.1-dev",
int width = 512,
int height = 512,
HuggingFaceServerless.HuggingFaceConfiguration configuration)Parameters
| name | type | default | description |
|---|---|---|---|
| inputText | Text | — | The text prompt for image generation. |
| model | Text | black-forest-labs/FLUX.1-dev | The model identifier (default is "black-forest-labs/FLUX.1-dev"). |
| width | Integer | 512 | The desired image width (default is 512). |
| height | Integer | 512 | The desired image height (default is 512). |
| configuration | Hugging Face Configuration | — | Optional configuration containing the API key. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Hugging Face
- Package
- Generative AI