Spaces:
Sleeping
Sleeping
Changed parameters order
Browse files
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"
|
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()
|