Oh now I see, I suppose that the problem is that your thinking about a standard python file but this is not the same in flask.
You need to use something like this to “store” your global objects in the app context (interpeter, input_details, output_details):

  

      stackoverflow.com
  

  
      
    
  


  What is the g object in this Flask code? 2



  python, flask



  asked by
  
  
    Greg
  
  on 06:46PM - 28 May 15 UTC