Hi everyone,
I’m building a chatbot app in Streamlit and I’m facing an issue: every time a new interaction happens (like submitting an input), the previous messages, charts, and inputs disappear from the page. I’d like everything to stay visible on the page, like a real conversation history, even after new inputs are added.
Here are some details about the app:
- The chatbot is designed for forecasting, using three different machine learning models (e.g., RandomForest, SARIMA, ETS).
- It asks the user a fixed sequence of questions, processes the answers, and uses them as inputs to the models.
- After gathering all inputs, it should show a bar chart with the forecasts and provide an option to download the results as an Excel file.
How can I make the chatbot messages, plots, and widgets persist on the page after each new user input?
Any help or examples would be appreciated!
Thanks in advance!