Staticaliza commited on
Commit
e0810f8
·
verified ·
1 Parent(s): c34b260

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -65,17 +65,18 @@ def generate(input=DEFAULT_INPUT, negative_input=DEFAULT_NEGATIVE_INPUT, height=
65
 
66
  # Initialize
67
  with gr.Blocks() as main:
68
- with gr.Column():
69
- input = gr.Textbox(lines=1, value=DEFAULT_INPUT, label="Input")
70
- negative_input = gr.Textbox(lines=1, value=DEFAULT_NEGATIVE_INPUT, label="Input Negative")
71
- height = gr.Slider(minimum=1, maximum=2160, step=1, value=DEFAULT_HEIGHT, label="Height")
72
- width = gr.Slider(minimum=1, maximum=2160, step=1, value=DEFAULT_WIDTH, label="Width")
73
- steps = gr.Slider(minimum=0, maximum=100, step=1, value=8, label="Steps")
74
- guidance = gr.Slider(minimum=0, maximum=100, step=0.001, value=3, label = "Guidance")
75
- seed = gr.Textbox(lines=1, value="", label="Seed (Blank for random)")
76
- submit = gr.Button("")
 
77
 
78
- with gr.Column():
79
  image = gr.Image(label="Image")
80
 
81
  submit.click(generate, inputs=[input, negative_input, height, width, steps, guidance, seed], outputs=[image])
 
65
 
66
  # Initialize
67
  with gr.Blocks() as main:
68
+ with gr.Row():
69
+ with gr.Column():
70
+ input = gr.Textbox(lines=1, value=DEFAULT_INPUT, label="Input")
71
+ negative_input = gr.Textbox(lines=1, value=DEFAULT_NEGATIVE_INPUT, label="Input Negative")
72
+ height = gr.Slider(minimum=1, maximum=2160, step=1, value=DEFAULT_HEIGHT, label="Height")
73
+ width = gr.Slider(minimum=1, maximum=2160, step=1, value=DEFAULT_WIDTH, label="Width")
74
+ steps = gr.Slider(minimum=0, maximum=100, step=1, value=8, label="Steps")
75
+ guidance = gr.Slider(minimum=0, maximum=100, step=0.001, value=3, label = "Guidance")
76
+ seed = gr.Textbox(lines=1, value="", label="Seed (Blank for random)")
77
+ submit = gr.Button("▶")
78
 
79
+ with gr.Row():
80
  image = gr.Image(label="Image")
81
 
82
  submit.click(generate, inputs=[input, negative_input, height, width, steps, guidance, seed], outputs=[image])