From 7e4fde6bca76498ec64c45b873155b7f9ef87dc5 Mon Sep 17 00:00:00 2001 From: Andrei Haidu Date: Mon, 2 Feb 2026 16:50:07 +0100 Subject: [PATCH] Fix Gradio 5.0+ compatibility in visualization example Remove show_download_button parameter from gr.Image calls as it was removed in Gradio 5.0. This fixes the TypeError when running the example with modern Gradio versions. Co-authored-by: Cursor --- examples/04_visualize_gradio.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/04_visualize_gradio.py b/examples/04_visualize_gradio.py index 0b1a2da..af5bce5 100644 --- a/examples/04_visualize_gradio.py +++ b/examples/04_visualize_gradio.py @@ -100,11 +100,11 @@ def update_step(index: int): with gr.Row(equal_height=True): map_plot = gr.Plot(scale=2, show_label=False) with gr.Column(scale=1): - left_rgb = gr.Image(show_label=False, show_download_button=False) - left_depth = gr.Image(show_label=False, show_download_button=False) + left_rgb = gr.Image(show_label=False) + left_depth = gr.Image(show_label=False) with gr.Column(scale=1): - right_rgb = gr.Image(show_label=False, show_download_button=False) - right_depth = gr.Image(show_label=False, show_download_button=False) + right_rgb = gr.Image(show_label=False) + right_depth = gr.Image(show_label=False) with gr.Row(): slider = gr.Slider(label="Timestep", minimum=0, maximum=0, step=1)