Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -327,13 +327,13 @@ def gradio_worker(
|
|
| 327 |
with gr.Tab('Depth Map') as depth_tab:
|
| 328 |
depth_path = gr.Image(label='Depth Map', type='filepath')
|
| 329 |
depth_rgb_path = gr.Image(label='RGB Image', type='filepath')
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
with gr.Tab('Normal Map') as normal_tab:
|
| 338 |
normal_path = gr.Image(label='Normal Map', type='filepath')
|
| 339 |
normal_rgb_path = gr.Image(label='RGB Image', type='filepath')
|
|
|
|
| 327 |
with gr.Tab('Depth Map') as depth_tab:
|
| 328 |
depth_path = gr.Image(label='Depth Map', type='filepath')
|
| 329 |
depth_rgb_path = gr.Image(label='RGB Image', type='filepath')
|
| 330 |
+
gr.Examples(
|
| 331 |
+
examples=[
|
| 332 |
+
[rgb_image.replace('rgb', 'depth'), rgb_image]
|
| 333 |
+
for rgb_image in glob.glob("examples/depth_normal/rgb/*.png")[:9]
|
| 334 |
+
],
|
| 335 |
+
inputs=[depth_path, depth_rgb_path]
|
| 336 |
+
)
|
| 337 |
with gr.Tab('Normal Map') as normal_tab:
|
| 338 |
normal_path = gr.Image(label='Normal Map', type='filepath')
|
| 339 |
normal_rgb_path = gr.Image(label='RGB Image', type='filepath')
|