title: reload flask website when pickle file modifies
body: <p>In Flask when the pickle file is modified I want to reload my website</p>
  <p>This is the function witch I want to reload</p>
  <pre><code>@app.route(&quot;/&quot;)
  def home():
      with open('bill.pkl', 'rb') as handle:
          b = pickle.load(handle)
      total=0
      units=0
      for i in b:
          total=total+b[i]['totalPrice']
          units=units+b[i]['unit']
      
      
      return render_template(&quot;home.html&quot;,bill=b,units=units,total=total)
  </code></pre>
  <p>In bill.ipkl I am adding Dictionary object at run time from another program witch is running continuously</p>