input: Write a function to create a web application in Python using Flask that will take user input and generate an HTML page with the input. If the user inputs text, the text should be displayed on the generated HTML page. If the input is empty, the HTML page should display 'No input provided.'.
  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 if input_text else 'No input provided.'}}</p>
   </body>
  </html>
  
  assert home() == render_template('index.html')
  assert home({'input_text': 'Hello World'}) == render_template('result.html', input_text='Hello World')
  assert home({'input_text': ''}) == render_template('result.html', input_text='No input provided.')
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')
  