Spaces:
Running
on
Zero
Running
on
Zero
Update raw.py
Browse files
raw.py
CHANGED
|
@@ -41,11 +41,11 @@ def generate_image(prompt, control_image):
|
|
| 41 |
iface = gr.Interface(
|
| 42 |
fn=generate_image,
|
| 43 |
inputs=[
|
| 44 |
-
gr.
|
| 45 |
-
gr.
|
| 46 |
],
|
| 47 |
outputs=[
|
| 48 |
-
gr.
|
| 49 |
],
|
| 50 |
title="FLUX ControlNet Image Generation",
|
| 51 |
description="Generate images using the FluxControlNetPipeline. Upload a control image and enter a prompt to create an image.",
|
|
|
|
| 41 |
iface = gr.Interface(
|
| 42 |
fn=generate_image,
|
| 43 |
inputs=[
|
| 44 |
+
gr.Textbox(lines=2, placeholder="Enter your prompt here..."),
|
| 45 |
+
gr.Image(type="pil", label="Control Image"),
|
| 46 |
],
|
| 47 |
outputs=[
|
| 48 |
+
gr.Image(type="pil", label="Generated Image"),
|
| 49 |
],
|
| 50 |
title="FLUX ControlNet Image Generation",
|
| 51 |
description="Generate images using the FluxControlNetPipeline. Upload a control image and enter a prompt to create an image.",
|