Update app.py
Browse files
app.py
CHANGED
@@ -45,11 +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(lines=3, width=
|
49 |
-
txt_input = gr.Textbox(label='Your prompt:', lines=3, width=
|
50 |
|
51 |
-
gen_button = gr.Button('Generate images', width=
|
52 |
-
stop_button = gr.Button('Stop', variant='secondary', interactive=False, width=
|
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;">
|
@@ -58,7 +58,7 @@ def make_me():
|
|
58 |
</div>
|
59 |
""")
|
60 |
with gr.Row():
|
61 |
-
output = [gr.Image(label=m, min_width=
|
62 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|
63 |
for m, o in zip(current_models, output):
|
64 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
@@ -86,5 +86,5 @@ with gr.Blocks(css="div.float.svelte-1mwvhlq { position: absolute; top: va
|
|
86 |
|
87 |
|
88 |
|
89 |
-
demo.queue(concurrency_count=
|
90 |
demo.launch()
|
|
|
45 |
def make_me():
|
46 |
# with gr.Tab('The Dream'):
|
47 |
with gr.Row():
|
48 |
+
#txt_input = gr.Textbox(lines=3, width=600, max_height=100)
|
49 |
+
txt_input = gr.Textbox(label='Your prompt:', lines=3, width=600, max_height=100)
|
50 |
|
51 |
+
gen_button = gr.Button('Generate images', width=30, height=30)
|
52 |
+
stop_button = gr.Button('Stop', variant='secondary', interactive=False, width=30, height=30)
|
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;">
|
|
|
58 |
</div>
|
59 |
""")
|
60 |
with gr.Row():
|
61 |
+
output = [gr.Image(label=m, min_width=500, height=500) for m in default_models]
|
62 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|
63 |
for m, o in zip(current_models, output):
|
64 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
|
|
86 |
|
87 |
|
88 |
|
89 |
+
demo.queue(concurrency_count=100)
|
90 |
demo.launch()
|