Skip to content

Commit f7fa4ac

Browse files
authored
Merge pull request #197 from kabyanil/main
Updated Gradio code from gr.outputs.Textbox() to gr.components.Textbox()
2 parents 2815ff2 + d49b8a0 commit f7fa4ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapters/en/chapter5/demo.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ demo = gr.Blocks()
4747
mic_transcribe = gr.Interface(
4848
fn=transcribe_speech,
4949
inputs=gr.Audio(sources="microphone", type="filepath"),
50-
outputs=gr.outputs.Textbox(),
50+
outputs=gr.components.Textbox(),
5151
)
5252

5353
file_transcribe = gr.Interface(
5454
fn=transcribe_speech,
5555
inputs=gr.Audio(sources="upload", type="filepath"),
56-
outputs=gr.outputs.Textbox(),
56+
outputs=gr.components.Textbox(),
5757
)
5858
```
5959

0 commit comments

Comments
 (0)