fffiloni commited on
Commit
960406b
1 Parent(s): 865ce2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -14
app.py CHANGED
@@ -1688,21 +1688,24 @@ if __name__ == "__main__":
1688
  </a>
1689
  </div>
1690
  """)
1691
- with gr.Row():
1692
- prompt = gr.Textbox(label="Prompt", scale=4)
1693
- submit_btn = gr.Button("Submit", scale=1)
1694
- with gr.Accordion("Advanced settings", open=False):
1695
- resolution = gr.Radio(
1696
- label = "Resolution",
1697
- choices = [
1698
- "1024,1024", "2048,2048", "2048,1024", "1536,3072", "3072,3072", "4096,4096", "4096,2048"
1699
- ],
1700
- value = "1024,1024"
1701
- )
1702
- num_inference_steps = gr.Slider(label="Inference Steps", minimum=2, maximum=50, step=1, value=50)
1703
- guidance_scale = gr.Slider(label="Guidance Scale", minimum=1, maximum=510, step=0.1, value=7.5)
 
 
 
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."],