Update app.py
Browse files
app.py
CHANGED
@@ -106,7 +106,14 @@ with gr.Blocks() as demo:
|
|
106 |
version_gallery = gr.Gallery(label="Versions", type="pil", object_fit='contain', visible=False)
|
107 |
restore_button = gr.Button("Restore Version", visible=False)
|
108 |
selected = gr.Number(show_label=False, visible=False)
|
109 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
|
111 |
version_gallery.select(get_select_index, None, selected)
|
112 |
generate_button.click(fn=generate, inputs=[sketch_pad,prompt, neg_prompt, version_gallery], outputs=[sketch_pad, version_gallery, restore_button])
|
|
|
106 |
version_gallery = gr.Gallery(label="Versions", type="pil", object_fit='contain', visible=False)
|
107 |
restore_button = gr.Button("Restore Version", visible=False)
|
108 |
selected = gr.Number(show_label=False, visible=False)
|
109 |
+
|
110 |
+
gr.Examples(
|
111 |
+
[[{'background':'./tony.jpg', 'layers':['./tony-mask.jpg'], 'composite':'./tony.jpg'}]],
|
112 |
+
sketch_pad,
|
113 |
+
version_gallery
|
114 |
+
generate,
|
115 |
+
cache_examples=True,
|
116 |
+
)
|
117 |
|
118 |
version_gallery.select(get_select_index, None, selected)
|
119 |
generate_button.click(fn=generate, inputs=[sketch_pad,prompt, neg_prompt, version_gallery], outputs=[sketch_pad, version_gallery, restore_button])
|