fffiloni commited on
Commit
a1090a0
·
verified ·
1 Parent(s): a8a3115

add lineart examples

Browse files
Files changed (1) hide show
  1. run_gradio.py +6 -6
run_gradio.py CHANGED
@@ -341,7 +341,7 @@ def undo_last_point(ref, base):
341
 
342
 
343
  # Main function to run the image processing
344
- def run_local(ref, base, *args):
345
  image = Image.fromarray(base)
346
  ref_image = Image.fromarray(ref)
347
 
@@ -396,11 +396,11 @@ with gr.Blocks() as demo:
396
  with gr.Row():
397
  gr.Examples(
398
  examples=[
399
- ['test_cases/hz0.png', 'test_cases/hz1.png'],
400
- ['test_cases/more_cases/az0.png', 'test_cases/more_cases/az1.JPG'],
401
- ['test_cases/more_cases/hi0.png', 'test_cases/more_cases/hi1.jpg'],
402
- ['test_cases/more_cases/kn0.jpg', 'test_cases/more_cases/kn1.jpg'],
403
- ['test_cases/more_cases/rk0.jpg', 'test_cases/more_cases/rk1.jpg'],
404
 
405
 
406
  ],
 
341
 
342
 
343
  # Main function to run the image processing
344
+ def run_local(ref, base, *args, progress=gr.Progress(track_tqdm=True)):
345
  image = Image.fromarray(base)
346
  ref_image = Image.fromarray(ref)
347
 
 
396
  with gr.Row():
397
  gr.Examples(
398
  examples=[
399
+ ['test_cases/hz0.png', 'test_cases/manga_target_examples/target_1.jpg'],
400
+ ['test_cases/more_cases/az0.png', 'test_cases/manga_target_examples/target_2.jpg'],
401
+ ['test_cases/more_cases/hi0.png', 'test_cases/manga_target_examples/target_3.jpg'],
402
+ ['test_cases/more_cases/kn0.jpg', 'test_cases/manga_target_examples/target_4.jpg'],
403
+ ['test_cases/more_cases/rk0.jpg', 'test_cases/manga_target_examples/target_5.jpg'],
404
 
405
 
406
  ],