master
/ miniconda3 / envs / poem / lib / python3.10 / site-packages / gradio / components / carousel.py

carousel.py @a8e0244

41a0142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
"""gr.Carousel() component."""

from gradio_client.serializing import SimpleSerializable

from gradio.components.base import IOComponent
from gradio.events import Changeable


class Carousel(IOComponent, Changeable, SimpleSerializable):
    """
    Deprecated Component
    """

    def __init__(
        self,
        *args,
        **kwargs,
    ):
        raise DeprecationWarning(
            "The Carousel component is deprecated. Please consider using the Gallery "
            "component, which can be used to display images (and optional captions).",
        )