I am doing a classic Twitter project with the main goal of classifying hate speech Tweets.
I am trying to build a streamlit app that basically showcases the result of a trained model on newly collected fresh tweets.
So I have everything in a single notebook that pull relevant tweets from a MySQL database, makes predictions and a matplotlib figure with all the stats.
I can run this manually each time and get the graph displayed on Streamlit local but how would I automate the jupyter notebook to run and update the streamlit app on a daily basis at a certain time?
I am thinking of a very long sequence of local ‘cron’ commands but there must be an easier way to do this.
Also, once I manage to run the script daily on the local streamlit, how do I automate the deployment so that the Heroku online app also get updated on daily basis?