Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -283,6 +283,10 @@ with gr.Blocks(css="style.css") as demo:
|
|
283 |
seed,
|
284 |
use_hed,
|
285 |
]
|
|
|
|
|
|
|
|
|
286 |
|
287 |
prompt.submit(
|
288 |
fn=randomize_seed_fn,
|
@@ -308,17 +312,6 @@ with gr.Blocks(css="style.css") as demo:
|
|
308 |
outputs=[result, sketch_image],
|
309 |
api_name=False,
|
310 |
)
|
311 |
-
|
312 |
-
fn=randomize_seed_fn,
|
313 |
-
inputs=[seed, randomize_seed],
|
314 |
-
outputs=seed,
|
315 |
-
queue=False,
|
316 |
-
api_name=False,
|
317 |
-
).then(lambda x: None, inputs=None, outputs=image_slider).then(
|
318 |
-
fn=run,
|
319 |
-
inputs=inputs,
|
320 |
-
outputs=[result, sketch_image],
|
321 |
-
api_name=False,
|
322 |
-
)
|
323 |
|
324 |
demo.queue().launch()
|
|
|
283 |
seed,
|
284 |
use_hed,
|
285 |
]
|
286 |
+
outputs = [result, sketch_image]
|
287 |
+
run_button.click(lambda x: None, inputs=None, outputs=image_slider).then(
|
288 |
+
fn=run, inputs=inputs, outputs=outputs
|
289 |
+
)
|
290 |
|
291 |
prompt.submit(
|
292 |
fn=randomize_seed_fn,
|
|
|
312 |
outputs=[result, sketch_image],
|
313 |
api_name=False,
|
314 |
)
|
315 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
|
317 |
demo.queue().launch()
|