Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def make_me():
|
|
62 |
stop_button.click(on_stop_click, None, [gen_button, stop_button])
|
63 |
|
64 |
with gr.Row():
|
65 |
-
output = [gr.Image(label=m, elem_id="custom_image"
|
66 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|
67 |
for m, o in zip(current_models, output):
|
68 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
@@ -144,12 +144,8 @@ body, html {
|
|
144 |
# Создание интерфейса
|
145 |
with gr.Blocks(css=custom_css) as demo:
|
146 |
make_me()
|
|
|
|
|
147 |
demo.queue(default_concurrency_limit=240, max_size=240)
|
148 |
demo.launch(max_threads=400, ssr_mode=True)
|
149 |
-
# https://github.com/gradio-app/gradio/issues/6339
|
150 |
-
|
151 |
-
|
152 |
|
153 |
-
# Очередь и запуск интерфейса
|
154 |
-
demo.queue()
|
155 |
-
demo.launch()
|
|
|
62 |
stop_button.click(on_stop_click, None, [gen_button, stop_button])
|
63 |
|
64 |
with gr.Row():
|
65 |
+
output = [gr.Image(label=m, elem_id="custom_image") for m in default_models] # Убрали tool="editor"
|
66 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|
67 |
for m, o in zip(current_models, output):
|
68 |
gen_event = gen_button.click(gen_fn, [m, txt_input], o)
|
|
|
144 |
# Создание интерфейса
|
145 |
with gr.Blocks(css=custom_css) as demo:
|
146 |
make_me()
|
147 |
+
|
148 |
+
# Очередь и запуск интерфейса с параметрами
|
149 |
demo.queue(default_concurrency_limit=240, max_size=240)
|
150 |
demo.launch(max_threads=400, ssr_mode=True)
|
|
|
|
|
|
|
151 |
|
|
|
|
|
|