mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-30 11:00:11 +08:00
add docstring for test_launch
This commit is contained in:
parent
745826dc9d
commit
a839379823
@ -658,6 +658,10 @@ class Interface(Blocks):
|
||||
return interpretation.run_interpret(self, raw_input)
|
||||
|
||||
def test_launch(self) -> None:
|
||||
"""
|
||||
Passes a few samples through the function to test if the inputs/outputs
|
||||
components are consistent with the function parameter and return values.
|
||||
"""
|
||||
for predict_fn in self.predict:
|
||||
print("Test launch: {}()...".format(predict_fn.__name__), end=" ")
|
||||
raw_input = []
|
||||
|
Loading…
Reference in New Issue
Block a user