mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
redid state
This commit is contained in:
parent
eadee8fbf5
commit
6f2b57f99d
@ -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):
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user