DazDin commited on
Commit
143d91b
Β·
verified Β·
1 Parent(s): 30f9cbb
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,7 +34,7 @@ def gen_fn(model_str, prompt):
34
  def make_me():
35
  with gr.Row():
36
  with gr.Column(scale=4):
37
- txt_input = gr.Textbox(label='Your prompt:', lines=3, container=False, elem_id="custom_textbox", placeholder="Prompt")
38
 
39
  with gr.Column(scale=1):
40
  gen_button = gr.Button('Generate images', elem_id="custom_gen_button")
@@ -50,7 +50,7 @@ def make_me():
50
  stop_button.click(on_stop_click, inputs=None, outputs=[gen_button, stop_button])
51
 
52
  with gr.Row():
53
- output = [gr.Image(label=m, min_width=250, height=300, elem_id="custom_image", show_label=True, interactive=False, show_share_button=False) for m in default_models]
54
  current_models = [gr.Textbox(m, visible=False) for m in default_models]
55
  for m, o in zip(current_models, output):
56
  gen_event = gen_button.click(gen_fn, [m, txt_input], o)
 
34
  def make_me():
35
  with gr.Row():
36
  with gr.Column(scale=4):
37
+ txt_input = gr.Textbox(label='Your prompt:', lines=4, container=False, elem_id="custom_textbox", placeholder="Prompt", height=250)
38
 
39
  with gr.Column(scale=1):
40
  gen_button = gr.Button('Generate images', elem_id="custom_gen_button")
 
50
  stop_button.click(on_stop_click, inputs=None, outputs=[gen_button, stop_button])
51
 
52
  with gr.Row():
53
+ output = [gr.Image(label=m, min_width=250, height=250, elem_id="custom_image", show_label=True, interactive=False, show_share_button=False) for m in default_models]
54
  current_models = [gr.Textbox(m, visible=False) for m in default_models]
55
  for m, o in zip(current_models, output):
56
  gen_event = gen_button.click(gen_fn, [m, txt_input], o)