charliebaby2023 commited on
Commit
132d5bb
1 Parent(s): 84ab6b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -13
app.py CHANGED
@@ -43,19 +43,20 @@ def gen_fn(model_str, prompt):
43
  return models_load[model_str](f'{prompt} {noise}')
44
 
45
  def make_me():
46
- with gr.Tab('The Dream'):
47
- txt_input = gr.Textbox(label='Your prompt:', lines=2, value=kii)
48
- gen_button = gr.Button('Generate images ')
49
- stop_button = gr.Button('Stop', variant='secondary', interactive=False)
50
- gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)
51
- gr.HTML("""
52
- <div style="text-align: center; max-width: 100%; margin: 0 auto;">
53
- <!--div>
54
- <body>
55
- </body>
56
- </div-->
57
- </div>
58
- """)
 
59
  with gr.Row():
60
  output = [gr.Image(label=m, min_width=250) for m in default_models]
61
  current_models = [gr.Textbox(m, visible=True) for m in default_models]
 
43
  return models_load[model_str](f'{prompt} {noise}')
44
 
45
  def make_me():
46
+ # with gr.Tab('The Dream'):
47
+ with gr.Row():
48
+ txt_input = gr.Textbox(label='Your prompt:', lines=2, value=kii)
49
+ gen_button = gr.Button('Generate images ')
50
+ stop_button = gr.Button('Stop', variant='secondary', interactive=False)
51
+ gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)
52
+ #gr.HTML("""
53
+ # <div style="text-align: center; max-width: 100%; margin: 0 auto;">
54
+ # <!--div>
55
+ # <body>
56
+ # </body>
57
+ # </div-->
58
+ # </div>
59
+ #""")
60
  with gr.Row():
61
  output = [gr.Image(label=m, min_width=250) for m in default_models]
62
  current_models = [gr.Textbox(m, visible=True) for m in default_models]