Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def make_me():
|
|
117 |
output = [gr.Image(label=m ) for m in default_models]
|
118 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|
119 |
for m, o in zip(current_models, output):
|
120 |
-
gen_event = gen_button.click(gen_fn, [m, txt_input, negative_prompt_input], o)
|
121 |
stop_button.click(lambda _: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
|
122 |
|
123 |
|
@@ -179,4 +179,6 @@ with gr.Blocks(css="""
|
|
179 |
make_me()
|
180 |
|
181 |
#demo.queue()
|
|
|
|
|
182 |
demo.launch(max_threads=200)
|
|
|
117 |
output = [gr.Image(label=m ) for m in default_models]
|
118 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|
119 |
for m, o in zip(current_models, output):
|
120 |
+
gen_event = gen_button.click(gen_fn, [m, txt_input, negative_prompt_input], o, queue = False)
|
121 |
stop_button.click(lambda _: gr.update(interactive=False), None, stop_button, cancels=[gen_event])
|
122 |
|
123 |
|
|
|
179 |
make_me()
|
180 |
|
181 |
#demo.queue()
|
182 |
+
demo.queue = False
|
183 |
+
demo.config["queue"] = Fals
|
184 |
demo.launch(max_threads=200)
|