def detect_person(url): return "Hello, World!" def handle(req): """handle a request to the function Args: req (str): request body """ if not req: raise Exception("Empty request") if isinstance(req, str): req = req.encode("utf-8") url = req return detect_person(url)