Thanks for Streamlit, it is really incredible!!
I developed a small app that (among other things) displays an image from a source folder and allows the user to click a button if they want to save it (to a backup storage).
The tricky part is that I would like the app to show the last file on that source folder, and if a new file appears in said folder, the app will update to reflect it automatically.
I can easily write a script that runs in an infinite loop to check if the folder has new image files, but I suspect that it will cause the app to hang.
Is there a good way to do that? perhaps a timer that can run every 1sec and check for update?
I do have a workaround but it is so ugly I’m ashamed to share it please suggest a nicer solution.