Update demo_gradio.py
Browse files- demo_gradio.py +4 -0
demo_gradio.py
CHANGED
@@ -183,6 +183,10 @@ with gr.Blocks(css=css) as demo:
|
|
183 |
input_image = gr.Image(type="pil", label="input image")
|
184 |
input_image2 = gr.Image(type="pil", label = "material examplar")
|
185 |
submit_btn = gr.Button("Submit")
|
|
|
|
|
|
|
|
|
186 |
with gr.Column():
|
187 |
output_image = gr.Image(label="transfer result")
|
188 |
submit_btn.click(fn=greet, inputs=[input_image, input_image2], outputs=[output_image])
|
|
|
183 |
input_image = gr.Image(type="pil", label="input image")
|
184 |
input_image2 = gr.Image(type="pil", label = "material examplar")
|
185 |
submit_btn = gr.Button("Submit")
|
186 |
+
gr.Examples(
|
187 |
+
examples = [["demo_assets/input_imgs/pumpkin.png"], ["demo_assets/material_exemplars/cup_glaze.png"]],
|
188 |
+
inputs = [input_image, input_image2]
|
189 |
+
)
|
190 |
with gr.Column():
|
191 |
output_image = gr.Image(label="transfer result")
|
192 |
submit_btn.click(fn=greet, inputs=[input_image, input_image2], outputs=[output_image])
|