input: Write a function that creates a simple web application in Python using Flask to take user input and generate an HTML page displaying the input. The function should include the necessary Flask framework setup and route handling for both GET and POST methods. Additionally, provide the content of the result.html file that displays the user input on the generated page.
  
  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)
          
      return app
  
  // result.html file
  <html>
   <body>
    <h1>Your Input: </h1>
    <p>{{input_text}}</p>
   </body>
  </html>
  
  assert create_flask_app() is not None
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)
          
      return app
  