How to use session_state on file_upload?

I have 3 pages, page one I use to retrieve the dataset by making file_upload and I display the dataset, then page 2 I use for training the dataset that I loaded earlier on page one, the problem is when I return to page 1 again, the dataset I have show was missing, how to solve this? this is my github repository thank you

Can you show us some minimal code that demonstrates the problem? It is easier to comment on that.

1 Like

I gave my github link, the repository contains 2 files, namely app.py, multiapp.py along with a folder called app which contains 3 files, namely preprocess.py, train_split.py, and predic.py. I have summarized it so you can easily find the context. Please help