Spaces:
Runtime error
Runtime error
Update edit_app.py
Browse files- edit_app.py +4 -1
edit_app.py
CHANGED
|
@@ -108,7 +108,10 @@ def main():
|
|
| 108 |
guidance_scale=text_cfg_scale, image_guidance_scale=image_cfg_scale,
|
| 109 |
num_inference_steps=steps, generator=generator,
|
| 110 |
).images[0]
|
| 111 |
-
|
|
|
|
|
|
|
|
|
|
| 112 |
|
| 113 |
def generate_stable_diff():
|
| 114 |
""" This function generate image from a text with stable diffusion"""
|
|
|
|
| 108 |
guidance_scale=text_cfg_scale, image_guidance_scale=image_cfg_scale,
|
| 109 |
num_inference_steps=steps, generator=generator,
|
| 110 |
).images[0]
|
| 111 |
+
|
| 112 |
+
stable_created_image = stable_diffusion_model("Michelangelo's David with a red background").images[0]
|
| 113 |
+
|
| 114 |
+
return [seed, text_cfg_scale, image_cfg_scale, stable_created_image]
|
| 115 |
|
| 116 |
def generate_stable_diff():
|
| 117 |
""" This function generate image from a text with stable diffusion"""
|