app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def make_me():
|
|
49 |
stop_button.click(on_stop_click, inputs=None, outputs=[gen_button, stop_button])
|
50 |
|
51 |
with gr.Row():
|
52 |
-
output = [gr.Image(label=m, min_width=250, height=250, elem_id="custom_image", show_label=True, interactive=
|
53 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|
54 |
for m, o in zip(current_models, output):
|
55 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
@@ -217,5 +217,5 @@ body {
|
|
217 |
with gr.Blocks(css=custom_css) as demo:
|
218 |
make_me()
|
219 |
|
220 |
-
demo.queue(concurrency_count=
|
221 |
demo.launch()
|
|
|
49 |
stop_button.click(on_stop_click, inputs=None, outputs=[gen_button, stop_button])
|
50 |
|
51 |
with gr.Row():
|
52 |
+
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]
|
53 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|
54 |
for m, o in zip(current_models, output):
|
55 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
|
|
217 |
with gr.Blocks(css=custom_css) as demo:
|
218 |
make_me()
|
219 |
|
220 |
+
demo.queue(concurrency_count=10)
|
221 |
demo.launch()
|