diff --git a/gradio/inputs.py b/gradio/inputs.py index e674963d84..a06116719b 100644 --- a/gradio/inputs.py +++ b/gradio/inputs.py @@ -1609,8 +1609,6 @@ class State(InputComponent): default (Any): the initial value of the state. optional (bool): this parameter is ignored. """ - warnings.warn("The State input component will be deprecated. Please use the " - "new Stateful component.") self.default = default super().__init__(label) @@ -1622,7 +1620,7 @@ class State(InputComponent): return { "state": {}, } - + def get_input_instance(iface: Interface): if isinstance(iface, str): diff --git a/gradio/outputs.py b/gradio/outputs.py index 9ab153919a..aecbdfbb49 100644 --- a/gradio/outputs.py +++ b/gradio/outputs.py @@ -844,8 +844,6 @@ class State(OutputComponent): Parameters: label (str): component name in interface (not used). """ - warnings.warn("The State output component will be deprecated. Please use the " - "new Stateful component.") super().__init__(label) @classmethod