To echo @ptrblck’s comment,  there is nothing wrong with streamlit if you want the UI, but hopefully the examples will give you some idea about the parts involved, some thoughts on efficiency, when to do what etc.
Best regards
Thomas