KingNish commited on
Commit
551ddca
1 Parent(s): 6d49265

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -2
app.py CHANGED
@@ -175,8 +175,19 @@ examples = [
175
  "an astronaut sitting in a diner, eating fries, cinematic, analog film",
176
  ]
177
 
178
- with gr.Blocks() as demo:
179
- gr.Markdown(DESCRIPTION)
 
 
 
 
 
 
 
 
 
 
 
180
  with gr.Accordion("Advanced options", open=False):
181
  with gr.Group():
182
  with gr.Row():
@@ -206,6 +217,10 @@ with gr.Blocks() as demo:
206
  seed = gr.Slider(
207
  label="Seed",
208
  minimum=0,
 
 
 
 
209
  width = gr.Slider(
210
  label="Width",
211
  minimum=256,
 
175
  "an astronaut sitting in a diner, eating fries, cinematic, analog film",
176
  ]
177
 
178
+ with gr.Row(equal_height=False):
179
+ with gr.Group():
180
+ with gr.Row():
181
+ prompt = gr.Text(
182
+ label="Prompt",
183
+ show_label=False,
184
+ max_lines=1,
185
+ placeholder="Enter your prompt",
186
+ container=False,
187
+ )
188
+ run_button = gr.Button("Run", scale=0)
189
+ result = gr.Gallery(label="Result", columns=NUM_IMAGES_PER_PROMPT, show_label=False)
190
+
191
  with gr.Accordion("Advanced options", open=False):
192
  with gr.Group():
193
  with gr.Row():
 
217
  seed = gr.Slider(
218
  label="Seed",
219
  minimum=0,
220
+ maximum=MAX_SEED,
221
+ step=1,
222
+ value=0,
223
+ )
224
  width = gr.Slider(
225
  label="Width",
226
  minimum=256,