Diegovch18 commited on
Commit
3365814
verified
1 Parent(s): 35047cb

Salida en componente texto

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -15,11 +15,13 @@ def audio_to_text(audio):
15
  text = "No se pudo conectar al servicio de reconocimiento."
16
  return text
17
 
 
 
18
  # Interfaz de Gradio
19
  interface = gr.Interface(
20
  fn=audio_to_text,
21
  inputs=gr.Audio(sources=['upload', 'microphone'], type="filepath"),
22
- outputs="text",
23
  title="Conversi贸n de Audio a Texto",
24
  description="Convierte audio capturado por el micr贸fono en texto utilizando reconocimiento de voz.",
25
  live=True
 
15
  text = "No se pudo conectar al servicio de reconocimiento."
16
  return text
17
 
18
+ respuesta = gr.Textbox(label="Transcripci贸n")
19
+
20
  # Interfaz de Gradio
21
  interface = gr.Interface(
22
  fn=audio_to_text,
23
  inputs=gr.Audio(sources=['upload', 'microphone'], type="filepath"),
24
+ outputs=respuesta,
25
  title="Conversi贸n de Audio a Texto",
26
  description="Convierte audio capturado por el micr贸fono en texto utilizando reconocimiento de voz.",
27
  live=True