input: Write a function that creates a web application using Flask in Python. The application should take user input and generate an HTML page displaying the input. The HTML templates 'result.html' and 'index.html' should be used.
  from flask import Flask, render_template, request
  
  app = Flask(__name__)
  
  @app.route('/', methods=['GET', 'POST'])
  def home():
      if request.method == 'POST':
          input_text = request.form.get('input_text')
          return render_template('result.html', input_text=input_text)
      return render_template('index.html')
  
  if __name__ == '__main__':
      app.run(debug=True)
  
  // result.html file
  <html>
   <body>
    <h1>Your Input: </h1>
    <p>{{input_text}}</p>
   </body>
  </html>
  
  assert app_run_response("Hello") == "<html><body><h1>Your Input: </h1><p>Hello</p></body></html>"
  assert app_run_response("Python Flask") == "<html><body><h1>Your Input: </h1><p>Python Flask</p></body></html>"
  assert app_run_response("") == "<html><body><h1>Your Input: </h1><p></p></body></html>"
output: 
  def home():
      if request.method == 'POST':
          input_text = request.form.get('input_text')
          return render_template('result.html', input_text=input_text)
      return render_template('index.html')
  