Spaces:
Runtime error
Runtime error
ktangri
commited on
Commit
·
1dc5584
1
Parent(s):
17a8001
Add example to app
Browse files
app.py
CHANGED
@@ -39,12 +39,14 @@ mic = gr.inputs.Audio(source='microphone', type='filepath', label='Speech input'
|
|
39 |
|
40 |
diarized_transcript = gr.outputs.Textbox(type='auto', label='Diarized Output')
|
41 |
full_transcript = gr.outputs.Textbox(type='auto', label='Full Transcript')
|
|
|
42 |
|
43 |
iface = gr.Interface(
|
44 |
theme='huggingface',
|
45 |
description='Testing transcription',
|
46 |
fn=transcribe,
|
47 |
inputs=[mic],
|
48 |
-
outputs=[diarized_transcript, full_transcript]
|
|
|
49 |
)
|
50 |
iface.launch()
|
|
|
39 |
|
40 |
diarized_transcript = gr.outputs.Textbox(type='auto', label='Diarized Output')
|
41 |
full_transcript = gr.outputs.Textbox(type='auto', label='Full Transcript')
|
42 |
+
examples = [["meeting_audio.wav"]]
|
43 |
|
44 |
iface = gr.Interface(
|
45 |
theme='huggingface',
|
46 |
description='Testing transcription',
|
47 |
fn=transcribe,
|
48 |
inputs=[mic],
|
49 |
+
outputs=[diarized_transcript, full_transcript],
|
50 |
+
examples=examples
|
51 |
)
|
52 |
iface.launch()
|