title: How to refresh Flasks automatically
body: <p>I have a CSV file which keeps updating every 30 seconds. I'd want my app.py in flask to read that file every 30 seconds so that the webpage stays updated. How can i do it ?</p>
  <pre><code>open_minute = &quot;final_minute_&quot;+name+&quot;.pickle&quot;
  file = open(open_minute,&quot;rb&quot;)
  final_minute = pickle.load(file)
  labels_minute = [i for i in final_minute['Hour_Minutes'].values]
  </code></pre>
  <p>I need my app.py in flask to keep reading the open_minute file every 30 seconds.</p>