input: Write a function to create a Flask web application that takes user input and generates an HTML page with the input. If the user submits the form, the input should be displayed on the 'result.html' page. Otherwise, the 'index.html' page should be displayed.
  assert app == Flask(__name__)
  assert app.route('/', methods=['GET', 'POST'])
  def home(request):
      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')
output: 
  def home(request):
      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')
  