Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ mic_transcribe = gr.Interface(
|
|
30 |
fn=transcribe_speech,
|
31 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
32 |
outputs=gr.outputs.Textbox(),
|
33 |
-
|
34 |
description=description,
|
35 |
)
|
36 |
|
@@ -38,7 +38,8 @@ file_transcribe = gr.Interface(
|
|
38 |
fn=transcribe_speech,
|
39 |
inputs=gr.Audio(source="upload", type="filepath"),
|
40 |
outputs=gr.outputs.Textbox(),
|
41 |
-
|
|
|
42 |
description=description,
|
43 |
)
|
44 |
|
@@ -48,4 +49,4 @@ with demo:
|
|
48 |
["Transcribe Microphone", "Transcribe Audio File"],
|
49 |
),
|
50 |
|
51 |
-
demo.launch()
|
|
|
30 |
fn=transcribe_speech,
|
31 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
32 |
outputs=gr.outputs.Textbox(),
|
33 |
+
title=title, # Fixed typo (tilte -> title)
|
34 |
description=description,
|
35 |
)
|
36 |
|
|
|
38 |
fn=transcribe_speech,
|
39 |
inputs=gr.Audio(source="upload", type="filepath"),
|
40 |
outputs=gr.outputs.Textbox(),
|
41 |
+
examples=[["./example.wav"]],
|
42 |
+
title=title, # Fixed typo (tilte -> title)
|
43 |
description=description,
|
44 |
)
|
45 |
|
|
|
49 |
["Transcribe Microphone", "Transcribe Audio File"],
|
50 |
),
|
51 |
|
52 |
+
demo.launch()
|