Skip to content

Add stable diffusion app example#183

Open
jpvotta wants to merge 1 commit intomainfrom
add-sd-example
Open

Add stable diffusion app example#183
jpvotta wants to merge 1 commit intomainfrom
add-sd-example

Conversation

@jpvotta
Copy link
Contributor

@jpvotta jpvotta commented Dec 5, 2025

Tested with

curl -X POST https://soft-smoke-dd073.apps.demo.hosted.unionai.cloud/generate \
-H "Content-Type: application/json" \
-d '{
  "prompt": "A fluffy, rust-red-colored labradoodle with straight hair and white markings smiling and panting at the camera with relaxed eyes.",
  "negative_prompt": "blurry, low quality",
  "num_inference_steps": 50,
  "guidance_scale": 10,
  "width": 512,
  "height": 512
}' \
--output my_image.png
my_image

Signed-off-by: John Votta <jpvotta@gmail.com>
resources=flyte.Resources(gpu=1, memory="16Gi", disk="5Gi"),
requires_auth=False,
scaling=Scaling(replicas=(1, 1)), # Keep exactly 1 replica running to avoid cold starts
inputs=[
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has to be changed to parameters, please update @jpvotta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants