Spaces:
Running
Running
Revert to older gradio style
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ def recognition(audio, style=0):
|
|
| 58 |
|
| 59 |
# input
|
| 60 |
inputs = [
|
| 61 |
-
gr.Audio(
|
| 62 |
gr.Slider(0, 1, value=0, label="Verbatimicity - from non-verbatim (0) to verbatim (1)", info="Choose a transcription style between non-verbatim and verbatim"),
|
| 63 |
]
|
| 64 |
|
|
@@ -72,7 +72,7 @@ examples = [
|
|
| 72 |
]
|
| 73 |
|
| 74 |
|
| 75 |
-
output = gr.Textbox(label="Output Text")
|
| 76 |
|
| 77 |
text = "Reverb ASR Transcription Styles Demo"
|
| 78 |
|
|
|
|
| 58 |
|
| 59 |
# input
|
| 60 |
inputs = [
|
| 61 |
+
gr.inputs.Audio(source="microphone", type="filepath", label='Input audio'),
|
| 62 |
gr.Slider(0, 1, value=0, label="Verbatimicity - from non-verbatim (0) to verbatim (1)", info="Choose a transcription style between non-verbatim and verbatim"),
|
| 63 |
]
|
| 64 |
|
|
|
|
| 72 |
]
|
| 73 |
|
| 74 |
|
| 75 |
+
output = gr.outputs.Textbox(label="Output Text")
|
| 76 |
|
| 77 |
text = "Reverb ASR Transcription Styles Demo"
|
| 78 |
|