code: def predict(self, img):
      return self.model(img=img)
  
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 2 for calling the AnimeGANv2UI obj's underlying member method code with example usage: obj.predict(img) and returns: self