Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -329,47 +329,62 @@ with gr.Blocks() as demo:
|
|
329 |
[
|
330 |
'./demo_example/005_source.png',
|
331 |
'./demo_example/005_reference.png',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
332 |
],
|
333 |
|
334 |
[
|
335 |
'./demo_example/000_source.png',
|
336 |
'./demo_example/000_reference.png',
|
337 |
-
|
338 |
-
[
|
339 |
-
'./demo_example/001_source.png',
|
340 |
-
'./demo_example/001_reference.png',
|
341 |
-
],
|
342 |
-
[
|
343 |
-
'./demo_example/002_source.png',
|
344 |
-
'./demo_example/002_reference.png',
|
345 |
],
|
346 |
[
|
347 |
'./demo_example/003_source.png',
|
348 |
'./demo_example/003_reference.png',
|
|
|
349 |
],
|
350 |
-
|
351 |
-
'./demo_example/004_source.png',
|
352 |
-
'./demo_example/004_reference.png',
|
353 |
-
],
|
354 |
[
|
355 |
'./demo_example/006_source.png',
|
356 |
'./demo_example/006_reference.png',
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
[
|
359 |
'./demo_example/007_source.png',
|
360 |
'./demo_example/007_reference.png',
|
|
|
|
|
|
|
|
|
|
|
|
|
361 |
],
|
362 |
-
|
363 |
],
|
364 |
|
365 |
inputs=[
|
366 |
base,
|
367 |
-
ref
|
368 |
-
|
|
|
369 |
cache_examples=False,
|
370 |
examples_per_page=100)
|
371 |
|
372 |
-
|
373 |
run_local_button.click(fn=run_local,
|
374 |
inputs=[base,
|
375 |
ref,
|
|
|
329 |
[
|
330 |
'./demo_example/005_source.png',
|
331 |
'./demo_example/005_reference.png',
|
332 |
+
0
|
333 |
+
|
334 |
+
],
|
335 |
+
[
|
336 |
+
'./demo_example/004_source.png',
|
337 |
+
'./demo_example/004_reference.png',
|
338 |
+
0
|
339 |
],
|
340 |
|
341 |
[
|
342 |
'./demo_example/000_source.png',
|
343 |
'./demo_example/000_reference.png',
|
344 |
+
0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
],
|
346 |
[
|
347 |
'./demo_example/003_source.png',
|
348 |
'./demo_example/003_reference.png',
|
349 |
+
0
|
350 |
],
|
351 |
+
|
|
|
|
|
|
|
352 |
[
|
353 |
'./demo_example/006_source.png',
|
354 |
'./demo_example/006_reference.png',
|
355 |
+
0
|
356 |
+
],
|
357 |
+
[
|
358 |
+
'./demo_example/001_source.png',
|
359 |
+
'./demo_example/001_reference.png',
|
360 |
+
1
|
361 |
],
|
362 |
+
[
|
363 |
+
'./demo_example/002_source.png',
|
364 |
+
'./demo_example/002_reference.png',
|
365 |
+
1
|
366 |
+
],
|
367 |
+
|
368 |
[
|
369 |
'./demo_example/007_source.png',
|
370 |
'./demo_example/007_reference.png',
|
371 |
+
1
|
372 |
+
],
|
373 |
+
[
|
374 |
+
'./demo_example/008_source.png',
|
375 |
+
'./demo_example/008_reference.png',
|
376 |
+
1
|
377 |
],
|
|
|
378 |
],
|
379 |
|
380 |
inputs=[
|
381 |
base,
|
382 |
+
ref,
|
383 |
+
enable_shape_control
|
384 |
+
],
|
385 |
cache_examples=False,
|
386 |
examples_per_page=100)
|
387 |
|
|
|
388 |
run_local_button.click(fn=run_local,
|
389 |
inputs=[base,
|
390 |
ref,
|