input: Write a function to design 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 given in the request. The function should return a dictionary with the temperature. If the given city name is not found, return an empty dictionary.
  assert get_current_temp('Tokyo') == {'temperature': 280.32}
  assert get_current_temp('InvalidCity') == {}
  assert get_current_temp('New York') == {'temperature': 290.15}
output: def get_current_temp(city):
      temperatures = {
          'Tokyo': 280.32,
          'New York': 290.15
      }
      return {'temperature': temperatures.get(city)} if city in temperatures else {}