input: Write a function to create a Flask web application that takes user input and generates an HTML page displaying the input.
  
  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 home(request.method='POST', request.form={'input_text': 'Hello World'}) == render_template('result.html', input_text='Hello World')
  assert home(request.method='GET') == render_template('index.html')
  assert "<h1>Your Input: </h1>\n  <p>Hello World</p>" in home(request.method='POST', request.form={'input_text': 'Hello World'})
  assert "<h1>Your Input: </h1>\n  <p>Test</p>" in home(request.method='POST', request.form={'input_text': 'Test'})
  assert home(request.method='POST', request.form={'input_text': ''}) == render_template('result.html', input_text='')
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')