Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -43,13 +43,15 @@ def transcribe(file_name):
|
|
43 |
|
44 |
return ' '.join(transcript), '\n'.join(confidence)
|
45 |
|
46 |
-
|
|
|
47 |
demo = gr.Interface(
|
48 |
transcribe,
|
49 |
gr.Audio(sources=["microphone"],
|
50 |
type="filepath", # Crea un archivo temporal en formato wav
|
|
|
51 |
streaming=False),
|
52 |
-
[
|
53 |
title='Demo uso de Speech-to-Text usando la Api de Google',
|
54 |
description='<p>Grabar audio para convertir voz a texto.</p>'
|
55 |
)
|
|
|
43 |
|
44 |
return ' '.join(transcript), '\n'.join(confidence)
|
45 |
|
46 |
+
output1 = gr.Textbox(label='Transcripción')
|
47 |
+
output2 = gr.Textbox(label='Umbral')
|
48 |
demo = gr.Interface(
|
49 |
transcribe,
|
50 |
gr.Audio(sources=["microphone"],
|
51 |
type="filepath", # Crea un archivo temporal en formato wav
|
52 |
+
label='Grabar audio aquí',
|
53 |
streaming=False),
|
54 |
+
[output1, output2],
|
55 |
title='Demo uso de Speech-to-Text usando la Api de Google',
|
56 |
description='<p>Grabar audio para convertir voz a texto.</p>'
|
57 |
)
|