prithivMLmods commited on
Commit
9660bae
·
verified ·
1 Parent(s): 442a102

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -376,13 +376,13 @@ with gr.Blocks(css=css) as demo:
376
 
377
  with gr.Row():
378
  with gr.Column(scale=55):
379
- prompt = gr.Textbox(label="Prompt", show_label=False, max_lines=2, placeholder="Enter your prompt").style(container=False)
380
- negative_prompt = gr.Textbox(label="Negative Prompt", show_label=False, max_lines=2, placeholder="Enter negative prompt").style(container=False)
381
  with gr.Column(scale=45):
382
  generate_btn = gr.Button("Generate")
383
 
384
  with gr.Row():
385
- image_output = gr.Gallery(label="Generated Images").style(grid=2, height="auto")
386
  seed_output = gr.Number(label="Seed Used")
387
 
388
  gr.Examples(examples=examples, inputs=[prompt])
@@ -395,4 +395,4 @@ with gr.Blocks(css=css) as demo:
395
 
396
  generate_btn.click(fn=generate, inputs=inputs, outputs=[image_output, seed_output])
397
 
398
- demo.launch()
 
376
 
377
  with gr.Row():
378
  with gr.Column(scale=55):
379
+ prompt = gr.Textbox(label="Prompt", show_label=False, max_lines=2, placeholder="Enter your prompt")
380
+ negative_prompt = gr.Textbox(label="Negative Prompt", show_label=False, max_lines=2, placeholder="Enter negative prompt")
381
  with gr.Column(scale=45):
382
  generate_btn = gr.Button("Generate")
383
 
384
  with gr.Row():
385
+ image_output = gr.Gallery(label="Generated Images").style(grid=[2], height="auto")
386
  seed_output = gr.Number(label="Seed Used")
387
 
388
  gr.Examples(examples=examples, inputs=[prompt])
 
395
 
396
  generate_btn.click(fn=generate, inputs=inputs, outputs=[image_output, seed_output])
397
 
398
+ demo.launch()