i uploaded a file in one tab and used the file in other tab. using the code below
if selected == “Upload”:
st.title(f"You have selected {selected}")
uploaded_file = st.file_uploader(“Upload your input file”, type=[‘csv’], key=“uploaded_file”)
after uploading the second tab displays the dataset. the second tab has a dropdown menu. when selecting the other functions. the uploaded file is not loaded. and it asks to upload the file again.