Yanzuo commited on
Commit
7b9b23e
1 Parent(s): 016778b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -20
app.py CHANGED
@@ -44,29 +44,32 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
44
  </div>
45
  """
46
  )
47
-
48
- with gr.Group():
49
- prompt = gr.Textbox(
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
- with gr.Row():
58
- height = gr.Slider(label="Height", minimum=256, maximum=1024, step=64, value=1024)
59
- width = gr.Slider(label="Width", minimum=256, maximum=1024, step=64, value=1024)
 
 
60
 
61
- with gr.Row():
62
- steps = gr.Slider(label="Inference Steps", minimum=6, maximum=25, step=1, value=8)
63
- scales = gr.Slider(label="Guidance Scale", minimum=0.0, maximum=5.0, step=0.1, value=3.5)
 
 
 
 
 
 
 
 
64
 
65
- seed = gr.Number(label="Seed (for reproducibility)", value=3413, precision=0)
66
-
67
- generate_btn = gr.Button("Generate Image", variant="primary", scale=1)
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
  """