Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1688,21 +1688,24 @@ if __name__ == "__main__":
|
|
1688 |
</a>
|
1689 |
</div>
|
1690 |
""")
|
1691 |
-
with gr.
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
|
|
|
|
|
|
|
1704 |
|
1705 |
-
output_images = gr.Image(format="png")
|
1706 |
gr.Examples(
|
1707 |
examples = [
|
1708 |
["Astronaut on Mars during sunset."],
|
|
|
1688 |
</a>
|
1689 |
</div>
|
1690 |
""")
|
1691 |
+
with gr.Group():
|
1692 |
+
with gr.Row():
|
1693 |
+
prompt = gr.Textbox(label="Prompt", scale=4)
|
1694 |
+
submit_btn = gr.Button("Submit", scale=1)
|
1695 |
+
with gr.Accordion("Advanced settings", open=False):
|
1696 |
+
with gr.Row():
|
1697 |
+
resolution = gr.Radio(
|
1698 |
+
label = "Resolution",
|
1699 |
+
choices = [
|
1700 |
+
"1024,1024", "2048,2048", "2048,1024", "1536,3072", "3072,3072", "4096,4096", "4096,2048"
|
1701 |
+
],
|
1702 |
+
value = "1024,1024"
|
1703 |
+
)
|
1704 |
+
with gr.Column():
|
1705 |
+
num_inference_steps = gr.Slider(label="Inference Steps", minimum=2, maximum=50, step=1, value=50)
|
1706 |
+
guidance_scale = gr.Slider(label="Guidance Scale", minimum=1, maximum=510, step=0.1, value=7.5)
|
1707 |
|
1708 |
+
output_images = gr.Image(label="Output Image", format="png")
|
1709 |
gr.Examples(
|
1710 |
examples = [
|
1711 |
["Astronaut on Mars during sunset."],
|