Repository: gradio-app/gradio

Issue:
Add missing classes and functions to docs page
- [x] I have searched to see if a similar issue already exists.


**Is your feature request related to a problem? Please describe.**  
As a gradio user, I can't find all the functionality gradio has to offer documented in the Docs page. 

For example, I can't find `gr.update` (https://github.com/gradio-app/gradio/issues/1647), the different flagging callbacks, and some components like `Interpretation` on the docs page. 

Some of these concepts, like the flagging callbacks, are covered in the guides but I think they should also be in the docs page. This will make it easier for developers and users to find all the public apis in one place as opposed to having to click through different guides and skim through the text to the part they need. 

**Describe the solution you'd like**  
Document all user-facing functionality on the Docs page. We may need to reorganize the Docs page too, like adding more subheadings beyond `Interface` and `Components`. 




Discussion:
Adding the brainstorming tag cause this can definitely be fleshed out more. 
TODO:

- [x] Interpretation
- [x] Flagging callbacks
- [ ] The `style` method of components
- [x] https://github.com/gradio-app/gradio/issues/1743
- [x] #1773 

Oh this shouldn't close just yet

Resolving patch:
diff --git a/gradio/components.py b/gradio/components.py
--- a/gradio/components.py
+++ b/gradio/components.py
@@ -188,7 +188,7 @@ def serialize(self, x: Any, called_directly: bool) -> Any:
         Convert from a human-readable version of the input (path of an image, URL of a video, etc.) into the interface to a serialized version (e.g. base64) to pass into an API. May do different things if the interface is called() vs. used via GUI.
         Parameters:
             x: Input to interface
-            called_directly: if true, the interface was called(), otherwise, it is being used via the GUI
+            called_directly: if True, the interface was called(), otherwise, it is being used via the GUI
         """
         return x
 
@@ -254,6 +254,13 @@ def style(
         border: Optional[bool | Tuple[bool, bool, bool, bool]] = None,
         container: Optional[bool] = None,
     ):
+        """
+        This method can be used to change the appearance of the component.
+        Parameters:
+            rounded: If True, will round the corners. If a tuple, will round corners according to the values in the tuple, starting from top left and proceeding clock-wise.
+            border: If True, will add border. If a tuple, will add edges according to the values in the tuple, starting from top and proceeding clock-wise.
+            container: If True, will place the component in a container - providing some extra padding around the border.
+        """
         if rounded is not None:
             self._style["rounded"] = rounded
         if border is not None:
@@ -269,7 +276,7 @@ def add_interactive_to_config(config, interactive):
         return config
 
 
-@document()
+@document("change", "submit", "style")
 class Textbox(Changeable, Submittable, IOComponent):
     """
     Creates a textarea for user to enter string input or display string output.
@@ -373,7 +380,7 @@ def serialize(self, x: Any, called_directly: bool) -> Any:
         Convert from a human-readable version of the input (path of an image, URL of a video, etc.) into the interface to a serialized version (e.g. base64) to pass into an API. May do different things if the interface is called() vs. used via GUI.
         Parameters:
             x: Input to interface
-            called_directly: if true, the interface was called(), otherwise, it is being used via the GUI
+            called_directly: if True, the interface was called(), otherwise, it is being used via the GUI
         """
         return x
 
@@ -464,7 +471,7 @@ def deserialize(self, x):
         return x
 
 
-@document()
+@document("change", "submit", "style")
 class Number(Changeable, Submittable, IOComponent):
     """
     Creates a numeric field for user to enter numbers as input or display numeric output.
@@ -648,7 +655,7 @@ def deserialize(self, y):
         return y
 
 
-@document()
+@document("change", "style")
 class Slider(Changeable, IOComponent):
     """
     Creates a slider that ranges from `minimum` to `maximum` with a step size of `step`.
@@ -802,13 +809,18 @@ def style(
         self,
         container: Optional[bool] = None,
     ):
+        """
+        This method can be used to change the appearance of the slider.
+        Parameters:
+            container: If True, will place the component in a container - providing some extra padding around the border.
+        """
         return IOComponent.style(
             self,
             container=container,
         )
 
 
-@document()
+@document("change", "style")
 class Checkbox(Changeable, IOComponent):
     """
     Creates a checkbox that can be set to `True` or `False`.
@@ -931,7 +943,7 @@ def deserialize(self, x):
         return x
 
 
-@document()
+@document("change", "style")
 class CheckboxGroup(Changeable, IOComponent):
     """
     Creates a set of checkboxes of which a subset can be checked.
@@ -1091,6 +1103,13 @@ def style(
         item_container: Optional[bool] = None,
         container: Optional[bool] = None,
     ):
+        """
+        This method can be used to change the appearance of the CheckboxGroup.
+        Parameters:
+            rounded: If True, will round the corners. If a tuple, will round corners according to the values in the tuple, starting from top left and proceeding clock-wise.
+            item_container: If True, will place the items in a container.
+            container: If True, will place the component in a container - providing some extra padding around the border.
+        """
         if item_container is not None:
             self._style["item_container"] = item_container
 
@@ -1101,7 +1120,7 @@ def style(
         )
 
 
-@document()
+@document("change", "style")
 class Radio(Changeable, IOComponent):
     """
     Creates a set of radio buttons of which only one can be selected.
@@ -1243,6 +1262,12 @@ def style(
         item_container: Optional[bool] = None,
         container: Optional[bool] = None,
     ):
+        """
+        This method can be used to change the appearance of the radio component.
+        Parameters:
+            item_container: If True, will place items in a container.
+            container: If True, will place the component in a container - providing some extra padding around the border.
+        """
         if item_container is not None:
             self._style["item_container"] = item_container
 
@@ -1252,7 +1277,7 @@ def style(
         )
 
 
-@document()
+@document("change", "style")
 class Dropdown(Radio):
     """
     Creates a dropdown of which only one entry can be selected.
@@ -1305,12 +1330,19 @@ def style(
         border: Optional[bool | Tuple[bool, bool, bool, bool]] = None,
         container: Optional[bool] = None,
     ):
+        """
+        This method can be used to change the appearance of the Dropdown.
+        Parameters:
+            rounded: If True, will round the corners. If a tuple, will round corners according to the values in the tuple, starting from top left and proceeding clock-wise.
+            border: If True, will add border. If a tuple, will add edges according to the values in the tuple, starting from top and proceeding clock-wise.
+            container: If True, will place the component in a container - providing some extra padding around the border.
+        """
         return IOComponent.style(
             self, rounded=rounded, border=border, container=container
         )
 
 
-@document()
+@document("edit", "clear", "change", "stream", "change")
 class Image(Editable, Clearable, Changeable, Streamable, IOComponent):
     """
     Creates an image component that can be used to upload/draw images (as an input) or display images (as an output).
@@ -1650,6 +1682,13 @@ def style(
         height: Optional[int] = None,
         width: Optional[int] = None,
     ):
+        """
+        This method can be used to change the appearance of the Image component.
+        Parameters:
+            rounded: If True, will round the corners. If a tuple, will round corners according to the values in the tuple, starting from top left and proceeding clock-wise.
+            height: Height of the image.
+            width: Width of the image.
+        """
         self._style["height"] = height
         self._style["width"] = width
         return IOComponent.style(
@@ -1665,19 +1704,20 @@ def stream(
         _js: Optional[str] = None,
     ):
         """
+        This event is triggered when the user streams the component (e.g. a live webcam
+        component)
         Parameters:
             fn: Callable function
             inputs: List of inputs
             outputs: List of outputs
-            _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
-        Returns: None
         """
+        # js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
         if self.source != "webcam":
             raise ValueError("Image streaming only available if source is 'webcam'.")
         Streamable.stream(self, fn, inputs, outputs, _js)
 
 
-@document()
+@document("change", "clear", "play", "pause", "stop", "style")
 class Video(Changeable, Clearable, Playable, IOComponent):
     """
     Creates an video component that can be used to upload/record videos (as an input) or display videos (as an output).
@@ -1848,6 +1888,13 @@ def style(
         height: Optional[int] = None,
         width: Optional[int] = None,
     ):
+        """
+        This method can be used to change the appearance of the video component.
+        Parameters:
+            rounded: If True, will round the corners. If a tuple, will round corners according to the values in the tuple, starting from top left and proceeding clock-wise.
+            height: Height of the video.
+            width: Width of the video.
+        """
         self._style["height"] = height
         self._style["width"] = width
         return IOComponent.style(
@@ -1856,7 +1903,7 @@ def style(
         )
 
 
-@document()
+@document("change", "clear", "play", "pause", "stop", "stream", "style")
 class Audio(Changeable, Clearable, Playable, Streamable, IOComponent):
     """
     Creates an audio component that can be used to upload/record audio (as an input) or display audio (as an output).
@@ -1889,7 +1936,7 @@ def __init__(
             show_label: if True, will display label.
             interactive: if True, will allow users to upload and edit a audio file; if False, can only be used to play audio. If not provided, this is inferred based on whether the component is used as an input or output.
             visible: If False, component will be hidden.
-            streaming: If set to true when used in a `live` interface, will automatically stream webcam feed. Only valid is source is 'microphone'.
+            streaming: If set to True when used in a `live` interface, will automatically stream webcam feed. Only valid is source is 'microphone'.
             elem_id: An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.
         """
         self.value = self.postprocess(value)
@@ -2152,13 +2199,14 @@ def stream(
         _js: Optional[str] = None,
     ):
         """
+        This event is triggered when the user streams the component (e.g. a live webcam
+        component)
         Parameters:
             fn: Callable function
             inputs: List of inputs
             outputs: List of outputs
-            _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
-        Returns: None
         """
+        #             _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
         if self.source != "microphone":
             raise ValueError(
                 "Audio streaming only available if source is 'microphone'."
@@ -2169,13 +2217,18 @@ def style(
         self,
         rounded: Optional[bool | Tuple[bool, bool, bool, bool]] = None,
     ):
+        """
+        This method can be used to change the appearance of the audio component.
+        Parameters:
+            rounded: If True, will round the corners. If a tuple, will round corners according to the values in the tuple, starting from top left and proceeding clock-wise.
+        """
         return IOComponent.style(
             self,
             rounded=rounded,
         )
 
 
-@document()
+@document("change", "clear", "style")
 class File(Changeable, Clearable, IOComponent):
     """
     Creates a file component that allows uploading generic file (when used as an input) and or displaying generic files (output).
@@ -2367,13 +2420,18 @@ def style(
         self,
         rounded: Optional[bool | Tuple[bool, bool, bool, bool]] = None,
     ):
+        """
+        This method can be used to change the appearance of the file component.
+        Parameters:
+            rounded: If True, will round the corners. If a tuple, will round corners according to the values in the tuple, starting from top left and proceeding clock-wise.
+        """
         return IOComponent.style(
             self,
             rounded=rounded,
         )
 
 
-@document()
+@document("change", "style")
 class Dataframe(Changeable, IOComponent):
     """
     Accepts or displays 2D input through a spreadsheet-like component for dataframes.
@@ -2628,13 +2686,18 @@ def style(
         self,
         rounded: Optional[bool | Tuple[bool, bool, bool, bool]] = None,
     ):
+        """
+        This method can be used to change the appearance of the DataFrame component.
+        Parameters:
+            rounded: If True, will round the corners. If a tuple, will round corners according to the values in the tuple, starting from top left and proceeding clock-wise.
+        """
         return IOComponent.style(
             self,
             rounded=rounded,
         )
 
 
-@document()
+@document("change", "style")
 class Timeseries(Changeable, IOComponent):
     """
     Creates a component that can be used to upload/preview timeseries csv files or display a dataframe consisting of a time series graphically.
@@ -2770,6 +2833,11 @@ def style(
         self,
         rounded: Optional[bool | Tuple[bool, bool, bool, bool]] = None,
     ):
+        """
+        This method can be used to change the appearance of the TimeSeries component.
+        Parameters:
+            rounded: If True, will round the corners. If a tuple, will round corners according to the values in the tuple, starting from top left and proceeding clock-wise.
+        """
         return IOComponent.style(
             self,
             rounded=rounded,
@@ -2806,7 +2874,7 @@ def style(self):
         return self
 
 
-@document()
+@document("click", "style")
 class Button(Clickable, IOComponent):
     """
     Used to create a button, that can be assigned arbitrary click() events. The label (value) of the button can be used as an input or set via the output of a function.
@@ -2863,6 +2931,13 @@ def style(
         border: Optional[bool | Tuple[bool, bool, bool, bool]] = None,
         margin: Optional[bool | Tuple[bool, bool, bool, bool]] = None,
     ):
+        """
+        This method can be used to change the appearance of the button component.
+        Parameters:
+            rounded: If True, will round the corners. If a tuple, will round corners according to the values in the tuple, starting from top left and proceeding clock-wise.
+            full_width: If True, the button will span the full width of the container.
+            border: If True, will include a border. If a tuple, will add borders according to values in the tuple, where the elements correspond to top, right, bottom, left edge.
+        """
         if full_width is not None:
             self._style["full_width"] = full_width
         if margin is not None:
@@ -2875,7 +2950,7 @@ def style(
         )
 
 
-@document()
+@document("change", "submit", "style")
 class ColorPicker(Changeable, Submittable, IOComponent):
     """
     Creates a color picker for user to select a color as string input.
@@ -2991,7 +3066,7 @@ def deserialize(self, x):
 ############################
 
 
-@document()
+@document("change", "style")
 class Label(Changeable, IOComponent):
     """
     Displays a classification label, along with confidence scores of top categories, if provided.
@@ -3126,10 +3201,15 @@ def style(
         self,
         container: Optional[bool] = None,
     ):
+        """
+        This method can be used to change the appearance of the label component.
+        Parameters:
+            container: If True, will add a container to the label - providing some extra padding around the border.
+        """
         return IOComponent.style(self, container=container)
 
 
-@document()
+@document("change", "style")
 class HighlightedText(Changeable, IOComponent):
     """
     Displays text that contains spans that are highlighted by category or numerical value.
@@ -3269,10 +3349,11 @@ def style(
         container: Optional[bool] = None,
     ):
         """
+        This method can be used to change the appearance of the HighlightedText component.
         Parameters:
-            rounded: If True, will round the corners of the text. If a tuple, will round the corners of the text according to the values in the tuple, starting from top left and proceeding clock-wise.
+            rounded: If True, will round the corners of the text. If a tuple, will round the corners according to the values in the tuple, starting from top left and proceeding clock-wise.
             color_map: Map between category and respective colors.
-            container: If True, will place the component in a container.
+            container: If True, will place the component in a container - providing some extra padding around the border.
         """
         if color_map is not None:
             self._style["color_map"] = color_map
@@ -3280,7 +3361,7 @@ def style(
         return IOComponent.style(self, rounded=rounded, container=container)
 
 
-@document()
+@document("change", "style")
 class JSON(Changeable, IOComponent):
     """
     Used to display arbitrary JSON output prettily.
@@ -3360,10 +3441,15 @@ def restore_flagged(self, dir, data, encryption_key):
         return json.loads(data)
 
     def style(self, container: Optional[bool] = None):
+        """
+        This method can be used to change the appearance of the JSON component.
+        Parameters:
+            container: If True, will place the JSON in a container - providing some extra padding around the border.
+        """
         return IOComponent.style(self, container=container)
 
 
-@document()
+@document("change")
 class HTML(Changeable, IOComponent):
     """
     Used to display arbitrary HTML output.
@@ -3427,7 +3513,7 @@ def style(self):
         return self
 
 
-@document()
+@document("style")
 class Gallery(IOComponent):
     """
     Used to display a list of images as a gallery that can be scrolled through.
@@ -3518,6 +3604,13 @@ def style(
         height: Optional[str] = None,
         container: Optional[bool] = None,
     ):
+        """
+        This method can be used to change the appearance of the gallery component.
+        Parameters:
+            rounded: If True, will round the corners. If a tuple, will round corners according to the values in the tuple, starting from top left and proceeding clock-wise.
+            height: Height of the gallery.
+            container: If True, will place gallery in a container - providing some extra padding around the border.
+        """
         if grid is not None:
             self._style["grid"] = grid
         if height is not None:
@@ -3632,7 +3725,7 @@ def restore_flagged(self, dir, data, encryption_key):
         ]
 
 
-@document()
+@document("change", "style")
 class Chatbot(Changeable, IOComponent):
     """
     Displays a chatbot output showing both user submitted messages and responses
@@ -3715,8 +3808,16 @@ def postprocess(self, y: List[Tuple[str, str]]) -> List[Tuple[str, str]]:
     def style(
         self,
         rounded: Optional[bool | Tuple[bool, bool, bool, bool]] = None,
-        color_map: Optional[Dict[str, str]] = None,
+        color_map: Optional[List[str, str]] = None,
     ):
+        """
+        This method can be used to change the appearance of the Chatbot component.
+        Parameters:
+            rounded: If True, whether the chat bubbles should be rounded. If a tuple, will round the corners of the bubble according to the values in the tuple, starting from top left and proceeding clock-wise.
+            color_map: List containing colors to apply to chat bubbles.
+        Returns:
+
+        """
         if color_map is not None:
             self._style["color_map"] = color_map
 
@@ -3726,7 +3827,7 @@ def style(
         )
 
 
-@document()
+@document("change", "edit", "clear", "style")
 class Model3D(Changeable, Editable, Clearable, IOComponent):
     """
     Component allows users to upload or view 3D Model files (.obj, .glb, or .gltf).
@@ -3858,13 +3959,18 @@ def style(
         self,
         rounded: Optional[bool | Tuple[bool, bool, bool, bool]] = None,
     ):
+        """
+        This method can be used to change the appearance of the Model3D component.
+        Args:
+            rounded: If True, will round the corners of the Model3D component. If a tuple, will round the corners of the Model3D according to the values in the tuple, starting from top left and proceeding clock-wise.
+        """
         return IOComponent.style(
             self,
             rounded=rounded,
         )
 
 
-@document()
+@document("change", "clear")
 class Plot(Changeable, Clearable, IOComponent):
     """
     Used to display various kinds of plots (matplotlib, plotly, or bokeh are supported)
@@ -3954,7 +4060,7 @@ def restore_flagged(self, dir, data, encryption_key):
         return json.loads(data)
 
 
-@document()
+@document("change")
 class Markdown(IOComponent, Changeable):
     """
     Used to render arbitrary Markdown output.
@@ -4021,7 +4127,7 @@ def style(self):
 ############################
 
 
-@document()
+@document("click", "style")
 class Dataset(Clickable, Component):
     """
     Used to create an output widget for showing datasets. Used to render the examples
@@ -4090,6 +4196,12 @@ def style(
         rounded: Optional[bool | Tuple[bool, bool, bool, bool]] = None,
         border: Optional[bool | Tuple[bool, bool, bool, bool]] = None,
     ):
+        """
+        This method can be used to change the appearance of the Dataset component.
+        Parameters:
+            rounded: If True, will round the all corners of the dataset. If a tuple, will round the corners of the dataset according to the values in the tuple, starting from top left and proceeding clock-wise.
+            border: If True, will include a border for all edges of the dataset. If a tuple, will add edges according to the values in the tuple, starting from top and proceeding clock-wise.
+        """
         return IOComponent.style(
             self,
             rounded=rounded,
diff --git a/gradio/documentation.py b/gradio/documentation.py
--- a/gradio/documentation.py
+++ b/gradio/documentation.py
@@ -115,7 +115,7 @@ def document_fn(fn: Callable) -> Tuple[str, List[Dict], Dict, Optional[str]]:
 def document_cls(cls):
     doc_str = inspect.getdoc(cls)
     if doc_str is None:
-        return "", {}
+        return "", {}, ""
     tags = {}
     description_lines = []
     mode = "description"
diff --git a/gradio/events.py b/gradio/events.py
--- a/gradio/events.py
+++ b/gradio/events.py
@@ -25,7 +25,7 @@ def change(
     ):
         """
         This event is triggered when the component's input value changes (e.g. when the user types in a textbox
-        or uploads an image)
+        or uploads an image). This method can be used when this component is in a Gradio Blocks.
 
         Parameters:
             fn: Callable function
@@ -35,9 +35,11 @@ def change(
             status_tracker: StatusTracker to visualize function progress
             scroll_to_output: If True, will scroll to output component on completion
             show_progress: If True, will show progress animation while pending
-            _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of input and outputs components, return should be a list of values for output component.
-        Returns: None
+            queue: If True, will place the request on the queue, if the queue exists
         """
+        # _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
+        # _preprocess: If False, will not run preprocessing of component data before running 'fn'.
+        # _postprocess: If False, will not run postprocessing of component data before returning 'fn' output.
         self.set_event_trigger(
             "change",
             fn,
@@ -71,6 +73,7 @@ def click(
     ):
         """
         This event is triggered when the component (e.g. a button) is clicked.
+        This method can be used when this component is in a Gradio Blocks.
 
         Parameters:
             fn: Callable function
@@ -80,11 +83,11 @@ def click(
             status_tracker: StatusTracker to visualize function progress
             scroll_to_output: If True, will scroll to output component on completion
             show_progress: If True, will show progress animation while pending
-            _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
-            _preprocess: If False, will not run preprocessing of component data before running 'fn'.
-            _postprocess: If False, will not run postprocessing of component data before returning 'fn' output.
-        Returns: None
+            queue: If True, will place the request on the queue, if the queue exists
         """
+        # _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
+        # _preprocess: If False, will not run preprocessing of component data before running 'fn'.
+        # _postprocess: If False, will not run postprocessing of component data before returning 'fn' output.
         self.set_event_trigger(
             "click",
             fn,
@@ -118,6 +121,8 @@ def submit(
     ):
         """
         This event is triggered when the user presses the Enter key while the component (e.g. a textbox) is focused.
+        This method can be used when this component is in a Gradio Blocks.
+
 
         Parameters:
             fn: Callable function
@@ -127,9 +132,11 @@ def submit(
             status_tracker: StatusTracker to visualize function progress
             scroll_to_output: If True, will scroll to output component on completion
             show_progress: If True, will show progress animation while pending
-            _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
-        Returns: None
+            queue: If True, will place the request on the queue, if the queue exists
         """
+        # _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
+        # _preprocess: If False, will not run preprocessing of component data before running 'fn'.
+        # _postprocess: If False, will not run postprocessing of component data before returning 'fn' output.
         self.set_event_trigger(
             "submit",
             fn,
@@ -160,16 +167,18 @@ def edit(
     ):
         """
         This event is triggered when the user edits the component (e.g. image) using the
-        built-in editor.
+        built-in editor. This method can be used when this component is in a Gradio Blocks.
 
         Parameters:
             fn: Callable function
             inputs: List of inputs
             outputs: List of outputs
             api_name: Defining this parameter exposes the endpoint in the api docs
-            _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
-        Returns: None
+            queue: If True, will place the request on the queue, if the queue exists
         """
+        # _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
+        # _preprocess: If False, will not run preprocessing of component data before running 'fn'.
+        # _postprocess: If False, will not run postprocessing of component data before returning 'fn' output.
         self.set_event_trigger(
             "edit",
             fn,
@@ -197,16 +206,18 @@ def clear(
     ):
         """
         This event is triggered when the user clears the component (e.g. image or audio)
-        using the X button for the component.
+        using the X button for the component. This method can be used when this component is in a Gradio Blocks.
 
         Parameters:
             fn: Callable function
             inputs: List of inputs
             outputs: List of outputs
             api_name: Defining this parameter exposes the endpoint in the api docs
-            _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
-        Returns: None
+            queue: If True, will place the request on the queue, if the queue exists
         """
+        # _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
+        # _preprocess: If False, will not run preprocessing of component data before running 'fn'.
+        # _postprocess: If False, will not run postprocessing of component data before returning 'fn' output.
         self.set_event_trigger(
             "submit",
             fn,
@@ -233,16 +244,19 @@ def play(
         _postprocess: bool = True,
     ):
         """
-        This event is triggered when the user plays the component (e.g. audio or video)
+        This event is triggered when the user plays the component (e.g. audio or video).
+        This method can be used when this component is in a Gradio Blocks.
 
         Parameters:
             fn: Callable function
             inputs: List of inputs
             outputs: List of outputs
             api_name: Defining this parameter exposes the endpoint in the api docs
-            _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
-        Returns: None
+            queue: If True, will place the request on the queue, if the queue exists
         """
+        # _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
+        # _preprocess: If False, will not run preprocessing of component data before running 'fn'.
+        # _postprocess: If False, will not run postprocessing of component data before returning 'fn' output.
         self.set_event_trigger(
             "play",
             fn,
@@ -267,16 +281,19 @@ def pause(
         _postprocess: bool = True,
     ):
         """
-        This event is triggered when the user pauses the component (e.g. audio or video)
+        This event is triggered when the user pauses the component (e.g. audio or video).
+        This method can be used when this component is in a Gradio Blocks.
 
         Parameters:
             fn: Callable function
             inputs: List of inputs
             outputs: List of outputs
             api_name: Defining this parameter exposes the endpoint in the api docs
-            _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
-        Returns: None
+            queue: If True, will place the request on the queue, if the queue exists
         """
+        # _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
+        # _preprocess: If False, will not run preprocessing of component data before running 'fn'.
+        # _postprocess: If False, will not run postprocessing of component data before returning 'fn' output.
         self.set_event_trigger(
             "pause",
             fn,
@@ -301,16 +318,19 @@ def stop(
         _postprocess: bool = True,
     ):
         """
-        This event is triggered when the user stops the component (e.g. audio or video)
+        This event is triggered when the user stops the component (e.g. audio or video).
+        This method can be used when this component is in a Gradio Blocks.
 
         Parameters:
             fn: Callable function
             inputs: List of inputs
             outputs: List of outputs
             api_name: Defining this parameter exposes the endpoint in the api docs
-            _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
-        Returns: None
+            queue: If True, will place the request on the queue, if the queue exists
         """
+        # _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
+        # _preprocess: If False, will not run preprocessing of component data before running 'fn'.
+        # _postprocess: If False, will not run postprocessing of component data before returning 'fn' output.
         self.set_event_trigger(
             "stop",
             fn,
@@ -339,16 +359,18 @@ def stream(
     ):
         """
         This event is triggered when the user streams the component (e.g. a live webcam
-        component)
+        component). This method can be used when this component is in a Gradio Blocks.
 
         Parameters:
             fn: Callable function
             inputs: List of inputs
             outputs: List of outputs
             api_name: Defining this parameter exposes the endpoint in the api docs
-            _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
-        Returns: None
+            queue: If True, will place the request on the queue, if the queue exists
         """
+        # _js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
+        # _preprocess: If False, will not run preprocessing of component data before running 'fn'.
+        # _postprocess: If False, will not run postprocessing of component data before returning 'fn' output.
         self.streaming = True
         self.set_event_trigger(
             "stream",


Test patch: