input: def generate_web_app(port: int = 5000) -> bool:
      """Create a web application in Python using Flask that will take user input and generate an HTML page with the input.
      The application should run on the specified port. If successful, it should return True, otherwise False.
      >>> generate_web_app(5000)
      True
      >>> generate_web_app(1234)
      False
      """
output:     from flask import Flask, request, render_template_string
  
      app = Flask(__name__)
  
      @app.route('/')
      def index():
          user_input = request.args.get('input', '')
          html_content = f"<html><body><h1>{user_input}</h1></body></html>"
          return render_template_string(html_content)
  
      try:
          app.run(port=port)
          return True
      except Exception as e:
          return False