Spaces:
Paused
Paused
test gradio
Browse files
app.py
CHANGED
@@ -31,8 +31,7 @@ def generate_image(prompt, reference_image, controlnet_conditioning_scale):
|
|
31 |
control_image=reference_image.resize((512, 512)),
|
32 |
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
33 |
guidance_scale=7.5,
|
34 |
-
|
35 |
-
).images[0]
|
36 |
return generated_image
|
37 |
|
38 |
# Set up Gradio interface
|
@@ -44,8 +43,8 @@ interface = gr.Interface(
|
|
44 |
gr.Slider(label="Control Net Conditioning Scale", minimum=0, maximum=1.0, step=0.1, value=0.6),
|
45 |
],
|
46 |
outputs="image",
|
47 |
-
title="Image Generation with Stable Diffusion 3
|
48 |
-
description="Generates an image based on a text prompt and a reference image using Stable Diffusion 3
|
49 |
)
|
50 |
|
51 |
# Launch the Gradio interface
|
|
|
31 |
control_image=reference_image.resize((512, 512)),
|
32 |
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
33 |
guidance_scale=7.5,
|
34 |
+
)
|
|
|
35 |
return generated_image
|
36 |
|
37 |
# Set up Gradio interface
|
|
|
43 |
gr.Slider(label="Control Net Conditioning Scale", minimum=0, maximum=1.0, step=0.1, value=0.6),
|
44 |
],
|
45 |
outputs="image",
|
46 |
+
title="Image Generation with Stable Diffusion 3 medium and ControlNet",
|
47 |
+
description="Generates an image based on a text prompt and a reference image using Stable Diffusion 3 medium with ControlNet."
|
48 |
)
|
49 |
|
50 |
# Launch the Gradio interface
|