Update app.py
Browse files
app.py
CHANGED
@@ -238,267 +238,270 @@ def inpaint(image, invert):
|
|
238 |
result = np.concatenate([color, alpha], axis=2)
|
239 |
return [result]
|
240 |
|
241 |
-
|
242 |
-
with block:
|
243 |
gr.Markdown(DESCRIPTION)
|
244 |
-
with gr.
|
245 |
-
gr.
|
246 |
-
|
247 |
-
with gr.
|
248 |
-
|
249 |
-
input_image = gr.Image(
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
with gr.
|
262 |
-
gr.
|
263 |
-
|
264 |
-
with gr.
|
265 |
-
|
266 |
-
input_image = gr.Image(
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
with gr.
|
277 |
-
gr.
|
278 |
-
|
279 |
-
with gr.
|
280 |
-
|
281 |
-
input_image = gr.Image(
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
with gr.
|
292 |
-
gr.
|
293 |
-
|
294 |
-
with gr.
|
295 |
-
|
296 |
-
input_image = gr.Image(
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
with gr.
|
309 |
-
gr.
|
310 |
-
|
311 |
-
with gr.
|
312 |
-
|
313 |
-
input_image = gr.Image(
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
with gr.
|
325 |
-
gr.
|
326 |
-
|
327 |
-
with gr.
|
328 |
-
|
329 |
-
input_image = gr.Image(
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
with gr.
|
340 |
-
gr.
|
341 |
-
|
342 |
-
with gr.
|
343 |
-
|
344 |
-
input_image = gr.Image(
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
with gr.
|
355 |
-
gr.
|
356 |
-
|
357 |
-
with gr.
|
358 |
-
|
359 |
-
input_image = gr.Image(
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
with gr.
|
370 |
-
gr.
|
371 |
-
|
372 |
-
with gr.
|
373 |
-
|
374 |
-
input_image = gr.Image(
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
with gr.
|
386 |
-
gr.
|
387 |
-
|
388 |
-
with gr.
|
389 |
-
|
390 |
-
input_image = gr.Image(
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
with gr.
|
402 |
-
gr.
|
403 |
-
|
404 |
-
with gr.
|
405 |
-
|
406 |
-
input_image = gr.Image(
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
gallery = gr.Gallery(label="Generated images", show_label=False
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
#
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
# with gr.Row():
|
435 |
-
#
|
436 |
-
#
|
437 |
-
#
|
438 |
-
#
|
439 |
-
#
|
440 |
-
#
|
441 |
-
#
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
with gr.Row():
|
447 |
-
|
448 |
-
#
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
#
|
453 |
-
|
454 |
-
#
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
with gr.Row():
|
462 |
-
|
463 |
-
#
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
#
|
468 |
-
|
469 |
-
#
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
#
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
#
|
500 |
-
|
|
|
|
|
|
|
|
|
501 |
run_button.click(fn=color_shuffler, inputs=[input_image, resolution], outputs=[gallery])
|
502 |
|
503 |
|
504 |
-
|
|
|
238 |
result = np.concatenate([color, alpha], axis=2)
|
239 |
return [result]
|
240 |
|
241 |
+
with gr.Blocks() as demo:
|
|
|
242 |
gr.Markdown(DESCRIPTION)
|
243 |
+
with gr.Tab("Canny Edge"):
|
244 |
+
with gr.Row():
|
245 |
+
gr.Markdown("## Canny Edge")
|
246 |
+
with gr.Row():
|
247 |
+
with gr.Column():
|
248 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
249 |
+
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
250 |
+
low_threshold = gr.Slider(label="low_threshold", minimum=1, maximum=255, value=100, step=1)
|
251 |
+
high_threshold = gr.Slider(label="high_threshold", minimum=1, maximum=255, value=200, step=1)
|
252 |
+
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
253 |
+
run_button = gr.Button("Run")
|
254 |
+
# run_button = gr.Button(label="Run")
|
255 |
+
with gr.Column():
|
256 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
257 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
258 |
+
run_button.click(fn=canny, inputs=[input_image, resolution, low_threshold, high_threshold], outputs=[gallery])
|
259 |
+
|
260 |
+
with gr.Tab("HED Edge"):
|
261 |
+
with gr.Row():
|
262 |
+
gr.Markdown("## HED Edge "SoftEdge"")
|
263 |
+
with gr.Row():
|
264 |
+
with gr.Column():
|
265 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
266 |
+
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
267 |
+
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
268 |
+
run_button = gr.Button("Run")
|
269 |
+
# run_button = gr.Button(label="Run")
|
270 |
+
with gr.Column():
|
271 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
272 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
273 |
+
run_button.click(fn=hed, inputs=[input_image, resolution], outputs=[gallery])
|
274 |
+
|
275 |
+
with gr.Tab("Pidi Edge"):
|
276 |
+
with gr.Row():
|
277 |
+
gr.Markdown("## Pidi Edge "SoftEdge"")
|
278 |
+
with gr.Row():
|
279 |
+
with gr.Column():
|
280 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
281 |
+
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
282 |
+
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
283 |
+
run_button = gr.Button("Run")
|
284 |
+
# run_button = gr.Button(label="Run")
|
285 |
+
with gr.Column():
|
286 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
287 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
288 |
+
run_button.click(fn=pidi, inputs=[input_image, resolution], outputs=[gallery])
|
289 |
+
|
290 |
+
with gr.Tab("MLSD Edge"):
|
291 |
+
with gr.Row():
|
292 |
+
gr.Markdown("## MLSD Edge")
|
293 |
+
with gr.Row():
|
294 |
+
with gr.Column():
|
295 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
296 |
+
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
297 |
+
value_threshold = gr.Slider(label="value_threshold", minimum=0.01, maximum=2.0, value=0.1, step=0.01)
|
298 |
+
distance_threshold = gr.Slider(label="distance_threshold", minimum=0.01, maximum=20.0, value=0.1, step=0.01)
|
299 |
+
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=384, step=64)
|
300 |
+
run_button = gr.Button("Run")
|
301 |
+
# run_button = gr.Button(label="Run")
|
302 |
+
with gr.Column():
|
303 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
304 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
305 |
+
run_button.click(fn=mlsd, inputs=[input_image, resolution, value_threshold, distance_threshold], outputs=[gallery])
|
306 |
+
|
307 |
+
with gr.Tab("MIDAS Depth"):
|
308 |
+
with gr.Row():
|
309 |
+
gr.Markdown("## MIDAS Depth")
|
310 |
+
with gr.Row():
|
311 |
+
with gr.Column():
|
312 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
313 |
+
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
314 |
+
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=384, step=64)
|
315 |
+
run_button = gr.Button("Run")
|
316 |
+
# run_button = gr.Button(label="Run")
|
317 |
+
with gr.Column():
|
318 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
319 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
320 |
+
run_button.click(fn=midas, inputs=[input_image, resolution], outputs=[gallery])
|
321 |
+
|
322 |
+
|
323 |
+
with gr.Tab("ZOE Depth"):
|
324 |
+
with gr.Row():
|
325 |
+
gr.Markdown("## Zoe Depth")
|
326 |
+
with gr.Row():
|
327 |
+
with gr.Column():
|
328 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
329 |
+
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
330 |
+
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
331 |
+
run_button = gr.Button("Run")
|
332 |
+
# run_button = gr.Button(label="Run")
|
333 |
+
with gr.Column():
|
334 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
335 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
336 |
+
run_button.click(fn=zoe, inputs=[input_image, resolution], outputs=[gallery])
|
337 |
+
|
338 |
+
with gr.Tab("Normal Bae"):
|
339 |
+
with gr.Row():
|
340 |
+
gr.Markdown("## Normal Bae")
|
341 |
+
with gr.Row():
|
342 |
+
with gr.Column():
|
343 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
344 |
+
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
345 |
+
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
346 |
+
run_button = gr.Button("Run")
|
347 |
+
# run_button = gr.Button(label="Run")
|
348 |
+
with gr.Column():
|
349 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
350 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
351 |
+
run_button.click(fn=normalbae, inputs=[input_image, resolution], outputs=[gallery])
|
352 |
+
|
353 |
+
with gr.Tab("DWPose"):
|
354 |
+
with gr.Row():
|
355 |
+
gr.Markdown("## DWPose")
|
356 |
+
with gr.Row():
|
357 |
+
with gr.Column():
|
358 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
359 |
+
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
360 |
+
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
361 |
+
run_button = gr.Button("Run")
|
362 |
+
# run_button = gr.Button(label="Run")
|
363 |
+
with gr.Column():
|
364 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
365 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
366 |
+
run_button.click(fn=dwpose, inputs=[input_image, resolution], outputs=[gallery])
|
367 |
+
|
368 |
+
with gr.Tab("Openpose"):
|
369 |
+
with gr.Row():
|
370 |
+
gr.Markdown("## Openpose")
|
371 |
+
with gr.Row():
|
372 |
+
with gr.Column():
|
373 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
374 |
+
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
375 |
+
hand_and_face = gr.Checkbox(label='Hand and Face', value=False)
|
376 |
+
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
377 |
+
run_button = gr.Button("Run")
|
378 |
+
# run_button = gr.Button(label="Run")
|
379 |
+
with gr.Column():
|
380 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
381 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
382 |
+
run_button.click(fn=openpose, inputs=[input_image, resolution, hand_and_face], outputs=[gallery])
|
383 |
+
|
384 |
+
with gr.Tab("Lineart Anime"):
|
385 |
+
with gr.Row():
|
386 |
+
gr.Markdown("## Lineart Anime \n<p>Check Invert to use with Mochi Diffusion.")
|
387 |
+
with gr.Row():
|
388 |
+
with gr.Column():
|
389 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
390 |
+
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
391 |
+
invert = gr.Checkbox(label='Invert', value=True)
|
392 |
+
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
393 |
+
run_button = gr.Button("Run")
|
394 |
+
# run_button = gr.Button(label="Run")
|
395 |
+
with gr.Column():
|
396 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
397 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
398 |
+
run_button.click(fn=lineart_anime, inputs=[input_image, resolution, invert], outputs=[gallery])
|
399 |
+
|
400 |
+
with gr.Tab("Lineart"):
|
401 |
+
with gr.Row():
|
402 |
+
gr.Markdown("## Lineart \n<p>Check Invert to use with Mochi Diffusion. Inverted image can also be created here for use with ControlNet Scribble.")
|
403 |
+
with gr.Row():
|
404 |
+
with gr.Column():
|
405 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
406 |
+
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
407 |
+
coarse = gr.Checkbox(label='Using coarse model', value=False)
|
408 |
+
invert = gr.Checkbox(label='Invert', value=True)
|
409 |
+
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
410 |
+
run_button = gr.Button("Run")
|
411 |
+
# run_button = gr.Button(label="Run")
|
412 |
+
with gr.Column():
|
413 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
414 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
415 |
+
run_button.click(fn=lineart, inputs=[input_image, resolution, coarse, invert], outputs=[gallery])
|
416 |
+
|
417 |
+
|
418 |
+
with gr.Tab("InPaint"):
|
419 |
+
with gr.Row():
|
420 |
+
gr.Markdown("## InPaint")
|
421 |
+
with gr.Row():
|
422 |
+
with gr.Column():
|
423 |
+
# input_image = gr.Image(source='upload', type="numpy", tool="sketch", height=512)
|
424 |
+
input_image = gr.ImageMask(sources="upload", type="numpy", height="auto")
|
425 |
+
invert = gr.Checkbox(label='Invert Mask', value=False)
|
426 |
+
run_button = gr.Button("Run")
|
427 |
+
# run_button = gr.Button(label="Run")
|
428 |
+
with gr.Column():
|
429 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
430 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
431 |
+
run_button.click(fn=inpaint, inputs=[input_image, invert], outputs=[gallery])
|
432 |
+
|
433 |
+
# with gr.Row():
|
434 |
+
# gr.Markdown("## Uniformer Segmentation")
|
435 |
+
# with gr.Row():
|
436 |
+
# with gr.Column():
|
437 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
438 |
+
# resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
439 |
+
# run_button = gr.Button(label="Run")
|
440 |
+
# with gr.Column():
|
441 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
442 |
+
# run_button.click(fn=uniformer, inputs=[input_image, resolution], outputs=[gallery])
|
443 |
+
|
444 |
+
|
445 |
+
# with gr.Row():
|
446 |
+
# gr.Markdown("## Oneformer COCO Segmentation")
|
447 |
+
# with gr.Row():
|
448 |
+
# with gr.Column():
|
449 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
450 |
+
# input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
451 |
+
# resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
452 |
+
# run_button = gr.Button("Run")
|
453 |
+
# run_button = gr.Button(label="Run")
|
454 |
+
# with gr.Column():
|
455 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
456 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
457 |
+
# run_button.click(fn=oneformer_coco, inputs=[input_image, resolution], outputs=[gallery])
|
458 |
+
|
459 |
+
|
460 |
+
# with gr.Row():
|
461 |
+
# gr.Markdown("## Oneformer ADE20K Segmentation")
|
462 |
+
# with gr.Row():
|
463 |
+
# with gr.Column():
|
464 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
465 |
+
# input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
466 |
+
# resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=640, step=64)
|
467 |
+
# run_button = gr.Button("Run")
|
468 |
+
# run_button = gr.Button(label="Run")
|
469 |
+
# with gr.Column():
|
470 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
471 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
472 |
+
# run_button.click(fn=oneformer_ade20k, inputs=[input_image, resolution], outputs=[gallery])
|
473 |
+
|
474 |
+
with gr.Tab("Content Shuffle"):
|
475 |
+
with gr.Row():
|
476 |
+
gr.Markdown("## Content Shuffle")
|
477 |
+
with gr.Row():
|
478 |
+
with gr.Column():
|
479 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
480 |
+
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
481 |
+
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
482 |
+
run_button = gr.Button("Run")
|
483 |
+
# run_button = gr.Button(label="Run")
|
484 |
+
with gr.Column():
|
485 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
486 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
487 |
+
run_button.click(fn=content_shuffler, inputs=[input_image, resolution], outputs=[gallery])
|
488 |
+
|
489 |
+
with gr.Tab("Color Shuffle"):
|
490 |
+
with gr.Row():
|
491 |
+
gr.Markdown("## Color Shuffle")
|
492 |
+
with gr.Row():
|
493 |
+
with gr.Column():
|
494 |
+
# input_image = gr.Image(source='upload', type="numpy")
|
495 |
+
input_image = gr.Image(label="Input Image", type="numpy", height=512)
|
496 |
+
resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
|
497 |
+
run_button = gr.Button("Run")
|
498 |
+
# run_button = gr.Button(label="Run")
|
499 |
+
with gr.Column():
|
500 |
+
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
501 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
502 |
+
|
503 |
+
|
504 |
run_button.click(fn=color_shuffler, inputs=[input_image, resolution], outputs=[gallery])
|
505 |
|
506 |
|
507 |
+
demo.launch()
|