Integration with Any Widget
1. Try it, Hands-on
2. Adjust the parameters
3. Copy the widget Pro Config template (it's an independent automata that includes that widget as a task)
{
"id": "prompt_widget_template",
"initial": "home_state",
"states": {
"home_state": {
"inputs": {
"prompt_a": {
"type": "text",
"description":"The prompt for your audio",
"user_input": true
}
},
"tasks": [
{
"name": "any_module_example_task",
"module_type": "AnyWidgetModule",
"module_config": {
"widget_id": "1743838636299784192",
"prompt_a":"{{prompt_a}}", // this field will received value from user input
"denoising":0.75, // How much to transform input spectrogram
"prompt_b":"90's rap", // The second prompt to interpolate with the first, leave blank if no interpolation
"alpha":0.5, // Interpolation alpha if using two prompts. A value of 0 uses prompt_a fully, a value of 1 uses prompt_b fully
"num_inference_steps":50, // Number of steps to run the diffusion model
"seed_image_id":"vibes", // Seed spectrogram to use
"output_name": "result"
}
}
],
"render": {
"text": "{{JSON.stringify(result)}}", // this widget will output a map, you can first run it and know what its type is.
"buttons": [
{
"content":"Generate Again",
"description":"",
"on_click":"generate"
}
]
},
"transitions": {
"generate": "home_state"
}
}
}
}4. Modify Pro Config according to the copied config
Last updated


