charliebaby2023 commited on
Commit
e367d1b
1 Parent(s): 6eab85d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -46,11 +46,11 @@ def gen_fn(model_str, prompt):
46
  def make_me():
47
  # with gr.Tab('The Dream'):
48
  with gr.Row():
49
- txt_input = gr.Textbox(lines=2, value=kii)
50
  #txt_input = gr.Textbox(label='Your prompt:', lines=2, value=kii)
51
- with gr.Row():
52
- gen_button = gr.Button('Generate images', max_width=150)
53
- stop_button = gr.Button('Stop', variant='secondary', interactive=False, max_width=150)
54
  gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)
55
  #gr.HTML("""
56
  # <div style="text-align: center; max-width: 100%; margin: 0 auto;">
@@ -61,7 +61,7 @@ def make_me():
61
  # </div>
62
  #""")
63
  with gr.Row():
64
- output = [gr.Image(label=m, min_width=140, height=140) for m in default_models]
65
  current_models = [gr.Textbox(m, visible=False) for m in default_models]
66
  for m, o in zip(current_models, output):
67
  gen_event = gen_button.click(gen_fn, [m, txt_input], o)
 
46
  def make_me():
47
  # with gr.Tab('The Dream'):
48
  with gr.Row():
49
+ txt_input = gr.Textbox(lines=2, value=kii, width=300)
50
  #txt_input = gr.Textbox(label='Your prompt:', lines=2, value=kii)
51
+
52
+ gen_button = gr.Button('Generate images', width=150)
53
+ stop_button = gr.Button('Stop', variant='secondary', interactive=False, width=150)
54
  gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)
55
  #gr.HTML("""
56
  # <div style="text-align: center; max-width: 100%; margin: 0 auto;">
 
61
  # </div>
62
  #""")
63
  with gr.Row():
64
+ output = [gr.Image(label=m, min_width=160, height=160) for m in default_models]
65
  current_models = [gr.Textbox(m, visible=False) for m in default_models]
66
  for m, o in zip(current_models, output):
67
  gen_event = gen_button.click(gen_fn, [m, txt_input], o)