code: def build_model(self):
      repo = "AK391/animegan2-pytorch:main"
      model = torch.hub.load(repo, "generator", device="cpu")
      face2paint = torch.hub.load(
          repo, "face2paint", size=512, device="cpu"
      )
      self.ready = True
      return partial(face2paint, model=model)
  
file_path: pytorch-lightning/examples/app/components/serve/gradio/app.py
imports: from functools import partial
  import gradio
  import requests
  import torch
  from lightning.app import LightningApp, LightningFlow
  from lightning.app.components import ServeGradio
  from PIL import Image
label_desc: Use image node_id 3 for calling the AnimeGANv2UI obj's underlying member method code with example usage: obj.build_model() and returns: partial