Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -85,18 +85,12 @@ with gr.Blocks() as demo:
|
|
| 85 |
|
| 86 |
with gr.Row():
|
| 87 |
with gr.Column(scale=1):
|
| 88 |
-
|
| 89 |
-
prompt = gr.Textbox(
|
| 90 |
label="Prompt",
|
| 91 |
placeholder="Enter your image description...",
|
| 92 |
lines=4,
|
| 93 |
)
|
| 94 |
-
|
| 95 |
-
output_image = gr.ImageSlider(
|
| 96 |
-
label="Generated Image",
|
| 97 |
-
type="pil",
|
| 98 |
-
)
|
| 99 |
-
|
| 100 |
with gr.Accordion("Advanced Settings", open=False):
|
| 101 |
with gr.Row():
|
| 102 |
height = gr.Slider(
|
|
@@ -134,8 +128,11 @@ with gr.Blocks() as demo:
|
|
| 134 |
label="Randomize Seed",
|
| 135 |
value=True,
|
| 136 |
)
|
| 137 |
-
|
| 138 |
-
|
|
|
|
|
|
|
|
|
|
| 139 |
|
| 140 |
|
| 141 |
|
|
|
|
| 85 |
|
| 86 |
with gr.Row():
|
| 87 |
with gr.Column(scale=1):
|
| 88 |
+
prompt = gr.Textbox(
|
|
|
|
| 89 |
label="Prompt",
|
| 90 |
placeholder="Enter your image description...",
|
| 91 |
lines=4,
|
| 92 |
)
|
| 93 |
+
generate_btn = gr.Button("Generate", variant="primary")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
with gr.Accordion("Advanced Settings", open=False):
|
| 95 |
with gr.Row():
|
| 96 |
height = gr.Slider(
|
|
|
|
| 128 |
label="Randomize Seed",
|
| 129 |
value=True,
|
| 130 |
)
|
| 131 |
+
with gr.Column(scale=1):
|
| 132 |
+
output_image = gr.ImageSlider(
|
| 133 |
+
label="Generated Image",
|
| 134 |
+
type="pil",
|
| 135 |
+
)
|
| 136 |
|
| 137 |
|
| 138 |
|