Skip to content

Commit 0019c12

Browse files
authored
added multistep to docs (#1880)
1 parent cb22401 commit 0019c12

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

gradio/blocks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def update(name):
262262
btn.click(fn=update, inputs=inp, outputs=out)
263263
264264
demo.launch()
265-
Demos: blocks_hello, blocks_flipper, blocks_speech_text_length, generate_english_german
265+
Demos: blocks_hello, blocks_flipper, blocks_speech_text_sentiment, generate_english_german
266266
"""
267267

268268
def __init__(

guides/3)building_with_blocks/1)blocks_and_event_listeners.md

+5
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ $demo_reversible_flow
3939

4040
Note that `num1` can act as input to `num2`, and also vice-versa! As your apps get more complex, you will have many data flows connecting various Components.
4141

42+
Here's an example of a "multi-step" demo, where the output of one model (a speech-to-text model) gets fed into the next model (a sentiment classifier).
43+
44+
$code_blocks_speech_text_sentiment
45+
$demo_blocks_speech_text_sentiment
46+
4247
## Function Return List vs Dict
4348

4449
So far, you have seen event listener functions with multiple outputs return a single value for each output component, in the order listed by the event listener. For example:

0 commit comments

Comments
 (0)