class_docstr: The ServeGradio Class enables to quickly create a ``gradio`` based UI for your LightningApp.
  
  In the example below, the ``ServeGradio`` is subclassed to deploy ``AnimeGANv2``.
  
  .. literalinclude:: ../../../../examples/app/components/serve/gradio/app.py
      :language: python
  
  The result would be the following:
  
  .. image:: https://pl-public-data.s3.amazonaws.com/assets_lightning/anime_gan.gif
      :alt: Animation showing how to AnimeGANv2 UI would looks like.
docstr: Override with your logic to make a prediction.
docstr_tok: ["Override","with","your","logic","to","make","a","prediction","."]
code: def predict(self, *args: Any, **kwargs: Any):
      """Override with your logic to make a prediction."""
  
file_path: pytorch-lightning/src/lightning/app/components/serve/gradio_server.py
imports: import abc
  from functools import partial
  from types import ModuleType
  from typing import Any, List, Optional
  from lightning.app.core.work import LightningWork
  from lightning.app.utilities.imports import _is_gradio_available, requires
label_desc: Use image node_id 3 for calling the ServeGradio obj's underlying member method code with example usage: obj.predict() without return types