**Describe the bug** When streaming outputs, the GradioUI displays the plan twice:  Related to: - #1305 **Code to reproduce the error** The code in `examples/gradio_ui.py` **Error logs (if any)** Provide error logs if there are any. **Expected behavior** A clear and concise description of what you expected to happen. **Packages version:** Run `pip freeze | grep smolagents` and paste it here. **Additional context** Add any other context about the problem here.