Spaces:
Running
on
Zero
Running
on
Zero
add lineart examples
Browse files- 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/
|
400 |
-
['test_cases/more_cases/az0.png', 'test_cases/
|
401 |
-
['test_cases/more_cases/hi0.png', 'test_cases/
|
402 |
-
['test_cases/more_cases/kn0.jpg', 'test_cases/
|
403 |
-
['test_cases/more_cases/rk0.jpg', 'test_cases/
|
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 |
],
|