aitor-medrano commited on
Commit
b9cf44f
·
verified ·
1 Parent(s): 2ffd512

Changed parameters order

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,7 +7,7 @@ import time
7
  pipe_base = pipeline("automatic-speech-recognition", model="aitor-medrano/lara-base-pushed")
8
  pipe_small = pipeline("automatic-speech-recognition", model="aitor-medrano/whisper-small-lara")
9
 
10
- def greet(modelo="Base", grabacion):
11
 
12
  inicio = time.time()
13
 
@@ -28,10 +28,10 @@ def greet(modelo="Base", grabacion):
28
 
29
  demo = gr.Interface(fn=greet,
30
  inputs=[
 
31
  gr.Dropdown(
32
  ["base", "small"], label="Modelo", info="Modelos de Lara entrenados"
33
- ),
34
- gr.Audio()
35
  ],
36
  outputs=["text","number"])
37
  demo.launch()
 
7
  pipe_base = pipeline("automatic-speech-recognition", model="aitor-medrano/lara-base-pushed")
8
  pipe_small = pipeline("automatic-speech-recognition", model="aitor-medrano/whisper-small-lara")
9
 
10
+ def greet(grabacion, modelo="Base"):
11
 
12
  inicio = time.time()
13
 
 
28
 
29
  demo = gr.Interface(fn=greet,
30
  inputs=[
31
+ gr.Audio(),
32
  gr.Dropdown(
33
  ["base", "small"], label="Modelo", info="Modelos de Lara entrenados"
34
+ )
 
35
  ],
36
  outputs=["text","number"])
37
  demo.launch()