Spaces:
Sleeping
Sleeping
Upload app.py
Browse filesadd example images
- frontend/app.py +14 -14
frontend/app.py
CHANGED
@@ -48,20 +48,20 @@ with gr.Blocks() as demo:
|
|
48 |
generate_button = gr.Button("Generate")
|
49 |
output = gr.Image(type='pil')
|
50 |
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
|
66 |
generate_button.click(
|
67 |
fn=call_inpainting_api,
|
|
|
48 |
generate_button = gr.Button("Generate")
|
49 |
output = gr.Image(type='pil')
|
50 |
|
51 |
+
example_list = gr.Examples(
|
52 |
+
examples=[['./frontend/example/img_1.jpg', './frontend/example/img_2.jpg', './frontend/example/img_3.jpg', './frontend/example/img_4.jpg', 100, 768]],
|
53 |
+
inputs=[
|
54 |
+
input_image_1,
|
55 |
+
input_image_2,
|
56 |
+
input_image_3,
|
57 |
+
input_image_4,
|
58 |
+
alpha_gradient_width,
|
59 |
+
init_image_height
|
60 |
+
],
|
61 |
+
outputs=[output],
|
62 |
+
fn=call_inpainting_api,
|
63 |
+
cache_examples=True,
|
64 |
+
)
|
65 |
|
66 |
generate_button.click(
|
67 |
fn=call_inpainting_api,
|