input: Write a function to create a web application using Flask that will take user input and generate an HTML page with the input. The function should define a route for the home page, handle both GET and POST requests, and render an HTML template to display the user input. If the given input is not applicable, return the appropriate response.
  assert create_flask_app() == 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)
  
  assert create_flask_app('result.html file') == <html>
   <body>
    <h1>Your Input: </h1>
    <p>{{input_text}}</p>
   </body>
  </html>
output: 
  def create_flask_app():
      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)
  