What is "state"?

When checking out Real Time Speech Recognition we see this mention of a “state” variable, which in the example seems to behave like an instance of just another Gradio block but I see no mention of it in the API docs. What is it and how does it work?

Good question! It basically allows the demo to store information from the user beyond a single function call. Please check out this for more info: stateful demos

Could you describe how we can use this with Blocks instead of Interface?

1 Like