Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -481,9 +481,7 @@ def run_demo_server(pipe_depth, pipe_normal, pipe_dis, pipe_matting):
|
|
| 481 |
)
|
| 482 |
|
| 483 |
filenames = []
|
| 484 |
-
filenames.extend(["matting_%d.jpg" %(i+1) for i in range(
|
| 485 |
-
# example_folder = "images"
|
| 486 |
-
# print('line 396', __file__)
|
| 487 |
example_folder = os.path.join(os.path.dirname(__file__), "matting_images")
|
| 488 |
# print(example_folder)
|
| 489 |
Examples(
|
|
@@ -492,8 +490,8 @@ def run_demo_server(pipe_depth, pipe_normal, pipe_dis, pipe_matting):
|
|
| 492 |
os.path.join(example_folder, name)
|
| 493 |
for name in filenames
|
| 494 |
],
|
| 495 |
-
inputs=[
|
| 496 |
-
outputs=[
|
| 497 |
# cache_examples=True,
|
| 498 |
directory_name="images_cache",
|
| 499 |
cache_examples=False,
|
|
|
|
| 481 |
)
|
| 482 |
|
| 483 |
filenames = []
|
| 484 |
+
filenames.extend(["matting_%d.jpg" %(i+1) for i in range(4)])
|
|
|
|
|
|
|
| 485 |
example_folder = os.path.join(os.path.dirname(__file__), "matting_images")
|
| 486 |
# print(example_folder)
|
| 487 |
Examples(
|
|
|
|
| 490 |
os.path.join(example_folder, name)
|
| 491 |
for name in filenames
|
| 492 |
],
|
| 493 |
+
inputs=[matting_image_input],
|
| 494 |
+
outputs=[matting_image_output, matting_image_output_files],
|
| 495 |
# cache_examples=True,
|
| 496 |
directory_name="images_cache",
|
| 497 |
cache_examples=False,
|