makepad/libs/flow/recipes/templates/prompt-to-depth.splash
Arena Agent d8d5ea8b6a Repair integration manifests and port nigig exports onto upstream widget families
Restore missing required asset/flow packages from the pinned nigig revision; retain upstream script isolation, X11 hover, and widget-core fixes. Validated makepad-widgets data feature with Rust 1.97.1.
2026-10-26 11:23:26 +00:00

14 lines
612 B
Text

use mod.flow.*
/** The scene to paint and measure. */
let prompt = Input{ type: @text default: "a stone stairway descending into a sea cave" }
let image = Image{ prompt: prompt.text() width: 512 height: 512 }
let depth = Depth{ image: image.image() model: "da3-metric-large" }
/** Publish the generated scene's metric depth map into the flow asset library. */
let published = Publish{ value: depth.out(@image) namespace: "flows" tags: ["flow", "depth"] }
Flow{
label: "Prompt to depth map"
brief: "Paints a scene and estimates a metric depth map from the result."
prompt, image, depth, published
}