title: HTML button to execute python code
body: <p>I am using flask to run my python code when html button is pressed. My python code takes an encoded image and returns the encoded text by decoding it.Now what I want is when html button is pressed, the page runs the python code and shows me the decoded text but when html button is pressed the webpage only shows the code in my py file but not runs it.</p>
  
  <p>This is the python "new.py" code:</p>
  
  <pre><code>from flask import Flask
  
  import os
  
  import subprocess
  
  app = Flask(__name__)
  
  @app.route("/stop/")
  
  def test():
  
      os.system('Python CN_Project.py')
  
  if __name__ == "__main__":
  
      app.run(debug=True)
  </code></pre>
  
  <p>I am a beginner in networks ans python. Please help me. </p>