I am trying to create a progress bar that runs as long as my function is running to show the user that things are happening and not just frozen. My function (generate_report