I'm working on a personal project, where I deploy a model in Flask and connect it to a simple Javascript UI. I just plan to have a single page UI to display daily results, but I'm struggling to figure out how to collect the data daily. There are 2 ways I think of:
- using Python Scheduler to extract and save the results at the end of each day, and also schedule time for javascript to fetch and display the results
- Schedule time for javascript to trigger Python script to run at the end of each day and display the results
I have not done this before so I don't know which way works or if it's even possible. I there is any suggestion or reference to this task I'd appreciate!