Spaces:
Running
on
Zero
Running
on
Zero
fix path
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ with gr.Blocks(title="DiLightNet Demo") as demo:
|
|
79 |
env_map_path = gr.Text(interactive=False, visible=False, value="examples/env_map/grace.exr")
|
80 |
env_rotation = gr.Slider(value=0., label="Environment Rotation", minimum=0., maximum=360., step=0.5)
|
81 |
env_examples = gr.Examples(
|
82 |
-
examples=[[os.path.join("examples/env_map_preview", i), os.path.join("examples/
|
83 |
inputs=[env_map_preview, env_map_path],
|
84 |
examples_per_page = 20,
|
85 |
)
|
|
|
79 |
env_map_path = gr.Text(interactive=False, visible=False, value="examples/env_map/grace.exr")
|
80 |
env_rotation = gr.Slider(value=0., label="Environment Rotation", minimum=0., maximum=360., step=0.5)
|
81 |
env_examples = gr.Examples(
|
82 |
+
examples=[[os.path.join("examples/env_map_preview", i), os.path.join("examples/env_map", i).replace("png", "exr")] for i in os.listdir("examples/env_map_preview")],
|
83 |
inputs=[env_map_preview, env_map_path],
|
84 |
examples_per_page = 20,
|
85 |
)
|