Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,29 +44,32 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 44 |
</div>
|
| 45 |
"""
|
| 46 |
)
|
| 47 |
-
|
| 48 |
-
with gr.
|
| 49 |
-
|
| 50 |
-
label="Your Image Description",
|
| 51 |
-
placeholder="E.g., A serene landscape with mountains and a lake at sunset",
|
| 52 |
-
lines=3
|
| 53 |
-
)
|
| 54 |
-
|
| 55 |
-
with gr.Accordion("Advanced Settings", open=False):
|
| 56 |
with gr.Group():
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
|
|
|
|
|
|
| 60 |
|
| 61 |
-
with gr.
|
| 62 |
-
|
| 63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
output = gr.Image(label="Your Generated Image")
|
| 70 |
|
| 71 |
gr.Markdown(
|
| 72 |
"""
|
|
|
|
| 44 |
</div>
|
| 45 |
"""
|
| 46 |
)
|
| 47 |
+
|
| 48 |
+
with gr.Row():
|
| 49 |
+
with gr.Column(scale=3):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
with gr.Group():
|
| 51 |
+
prompt = gr.Textbox(
|
| 52 |
+
label="Your Image Description",
|
| 53 |
+
placeholder="E.g., A serene landscape with mountains and a lake at sunset",
|
| 54 |
+
lines=3
|
| 55 |
+
)
|
| 56 |
|
| 57 |
+
with gr.Accordion("Advanced Settings", open=False):
|
| 58 |
+
with gr.Group():
|
| 59 |
+
with gr.Row():
|
| 60 |
+
height = gr.Slider(label="Height", minimum=256, maximum=1152, step=64, value=1024)
|
| 61 |
+
width = gr.Slider(label="Width", minimum=256, maximum=1152, step=64, value=1024)
|
| 62 |
+
|
| 63 |
+
with gr.Row():
|
| 64 |
+
steps = gr.Slider(label="Inference Steps", minimum=6, maximum=25, step=1, value=8)
|
| 65 |
+
scales = gr.Slider(label="Guidance Scale", minimum=0.0, maximum=5.0, step=0.1, value=3.5)
|
| 66 |
+
|
| 67 |
+
seed = gr.Number(label="Seed (for reproducibility)", value=3413, precision=0)
|
| 68 |
|
| 69 |
+
generate_btn = gr.Button("Generate Image", variant="primary", scale=1)
|
| 70 |
+
|
| 71 |
+
with gr.Column(scale=4):
|
| 72 |
+
output = gr.Image(label="Your Generated Image")
|
|
|
|
| 73 |
|
| 74 |
gr.Markdown(
|
| 75 |
"""
|