julenalvaro commited on
Commit
3c64e37
·
1 Parent(s): 61eeab3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -2,6 +2,9 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
  modelo = pipeline('automatic-speech-recognition', model = 'facebook/wav2vec2-large-xlsr-53-spanish')
 
 
 
5
 
6
  def transcribe(audio):
7
  text = modelo(audio)['text']
@@ -10,5 +13,7 @@ def transcribe(audio):
10
  gr.Interface(
11
  fn = transcribe,
12
  inputs = gr.Audio(source = 'microphone', type = 'filepath'),
13
- outputs = ['textbox']
 
 
14
  ).launch()
 
2
  from transformers import pipeline
3
 
4
  modelo = pipeline('automatic-speech-recognition', model = 'facebook/wav2vec2-large-xlsr-53-spanish')
5
+ titulo = "Audio2Text"
6
+ descripcion = "Graba un audio en castellano y envíalo para obtener la transcripción"
7
+
8
 
9
  def transcribe(audio):
10
  text = modelo(audio)['text']
 
13
  gr.Interface(
14
  fn = transcribe,
15
  inputs = gr.Audio(source = 'microphone', type = 'filepath'),
16
+ outputs = ['textbox'],
17
+ title = titulo,
18
+ description = descripcion
19
  ).launch()