input: Write a function to create a web server in Python using the Flask framework that serves a JSON object containing the current temperature for a city based on the city name provided in the request.
  
  def create_web_server():
      import requests
      import json
      from flask import Flask, request
  
      app = Flask('name')
  
      @app.route('/getTemp', methods=['POST'])
      def get_temp():
          city = request.json['city']
          url = 'http://api.openweathermap.org/data/2.5/weather?q={}&APPID=xxxxxx'
          r = requests.get(url.format(city))
          weather = json.loads(r.text)
          return {'temperature': weather['main']['temp']}
  
      if 'name' == 'main':
          app.run(debug=True)
  
  assert create_web_server().get_temp({city: 'London'})=={'temperature': 280.32}
  assert create_web_server().get_temp({city: 'New York'})=={'temperature': 278.15}
  assert create_web_server().get_temp({city: 'Tokyo'})=={'temperature': 290.00}
  
output: 
  def create_web_server():
      import requests
      import json
      from flask import Flask, request
  
      app = Flask('name')
  
      @app.route('/getTemp', methods=['POST'])
      def get_temp():
          city = request.json['city']
          url = 'http://api.openweathermap.org/data/2.5/weather?q={}&APPID=xxxxxx'
          r = requests.get(url.format(city))
          weather = json.loads(r.text)
          return {'temperature': weather['main']['temp']}
  
      return app
  