Skip to content

Walkthrough step buttons not working #12908

@Louis-Pagnier-KW

Description

@Louis-Pagnier-KW

Describe the bug

When using a walktrough and being on a step N, clicking on a step N-1 update the view, but after that we can't update the walktrough to N.

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

Go on the official Walkthrough demo: https://www.gradio.app/docs/gradio/walkthrough

  • Upload an image
  • Click on "Go to prompt"
  • Click on the Walkthrough (1) orange button icon
  • Click again on "Go to prompt" (not working)

Otherwise, here is the code of the official demo:

import gradio as gr

with gr.Blocks() as demo:
    with gr.Walkthrough(selected=0) as walkthrough:
        with gr.Step("Image", id=0):
            image = gr.Image()
            btn = gr.Button("go to prompt")
            btn.click(lambda: gr.Walkthrough(selected=1), outputs=walkthrough)
        with gr.Step("Prompt", id=1):
            prompt = gr.Textbox()
            btn = gr.Button("generate")
            btn.click(lambda: gr.Walkthrough(selected=2), outputs=walkthrough)
        with gr.Step("Result", id=2):
            gr.Image(label="result", interactive=False)


if __name__ == "__main__":
    demo.launch()

Screenshot

No response

Logs

System Info

Tested on Firefox & Chrome, Ubuntu 24.04

Severity

Blocking usage of gradio

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions