Spaces:
Runtime error
Runtime error
charliebaby2023
commited on
Commit
•
4424a6b
1
Parent(s):
657e6cc
Update app.py
Browse files
app.py
CHANGED
@@ -45,10 +45,11 @@ def gen_fn(model_str, prompt):
|
|
45 |
def make_me():
|
46 |
# with gr.Tab('The Dream'):
|
47 |
with gr.Row():
|
48 |
-
txt_input = gr.Textbox(
|
|
|
49 |
with gr.Row():
|
50 |
-
gen_button = gr.Button('Generate images', max_width=
|
51 |
-
stop_button = gr.Button('Stop', variant='secondary', interactive=False)
|
52 |
gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)
|
53 |
#gr.HTML("""
|
54 |
# <div style="text-align: center; max-width: 100%; margin: 0 auto;">
|
@@ -59,7 +60,7 @@ def make_me():
|
|
59 |
# </div>
|
60 |
#""")
|
61 |
with gr.Row():
|
62 |
-
output = [gr.Image(label=m, min_width=
|
63 |
current_models = [gr.Textbox(m, visible=True) for m in default_models]
|
64 |
for m, o in zip(current_models, output):
|
65 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
|
|
45 |
def make_me():
|
46 |
# with gr.Tab('The Dream'):
|
47 |
with gr.Row():
|
48 |
+
txt_input = gr.Textbox(lines=2, value=kii)
|
49 |
+
#txt_input = gr.Textbox(label='Your prompt:', lines=2, value=kii)
|
50 |
with gr.Row():
|
51 |
+
gen_button = gr.Button('Generate images', max_width=150)
|
52 |
+
stop_button = gr.Button('Stop', variant='secondary', interactive=False, max_width=150)
|
53 |
gen_button.click(lambda s: gr.update(interactive=True), None, stop_button)
|
54 |
#gr.HTML("""
|
55 |
# <div style="text-align: center; max-width: 100%; margin: 0 auto;">
|
|
|
60 |
# </div>
|
61 |
#""")
|
62 |
with gr.Row():
|
63 |
+
output = [gr.Image(label=m, min_width=200) for m in default_models]
|
64 |
current_models = [gr.Textbox(m, visible=True) for m in default_models]
|
65 |
for m, o in zip(current_models, output):
|
66 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|