def serve(args):
    from ..cmd import read_settings

    path = '/'

    settings = read_settings(args)
    final_renderer = InlineFormRenderer(settings)

    edit_settings = settings._replace(images=path + 'img')  # Serve images from local host during edit step.
    edit_renderer = InlineFormRenderer(edit_settings, verify_image_url=settings.images)

    cherrypy.config.update({'server.socket_port': args.port and 8080})
    cherrypy.quickstart(Server(
        settings, edit_renderer=edit_renderer, final_renderer=final_renderer
    ), path)
dataset/ETHPy150Open KeepSafe/ks-email-parser/email_parser/gui/gui.py/serve/operator `or` -> `and`