Spaces:
Sleeping
Sleeping
Update demo_gradio.py
Browse files- demo_gradio.py +7 -6
demo_gradio.py
CHANGED
@@ -177,13 +177,14 @@ with gr.Blocks(css=css) as demo:
|
|
177 |
# ZeST: Zero-Shot Material Transfer from a Single Image
|
178 |
Upload two images -- input image and material exemplar. ZeST extracts the material from the exemplar and cast it onto the input image following the original lighting cues.
|
179 |
""")
|
180 |
-
with gr.
|
181 |
-
with gr.
|
182 |
-
|
183 |
-
|
|
|
184 |
submit_btn = gr.Button("Submit")
|
185 |
-
|
186 |
-
|
187 |
submit_btn.click(fn=greet, inputs=[input_image, input_image2], outputs=[output_image])
|
188 |
|
189 |
demo.queue().launch()
|
|
|
177 |
# ZeST: Zero-Shot Material Transfer from a Single Image
|
178 |
Upload two images -- input image and material exemplar. ZeST extracts the material from the exemplar and cast it onto the input image following the original lighting cues.
|
179 |
""")
|
180 |
+
with gr.Row():
|
181 |
+
with gr.Column():
|
182 |
+
with gr.Row():
|
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])
|
189 |
|
190 |
demo.queue().launch()
|