I am trying to use file_uploader method of streamlit inside an if condition. Basically, if login details are verified, a file_uploader option needs to arise which is working well, the main problem is after I upload a file, the file_uploader widget is vanishing. Surprisingly, this happens only when I am inside an if condition. When using file:_uploader, it works normally.
Please let me know if u have a solution for this.