Spaces:
Sleeping
Sleeping
Models
Browse files
app.py
CHANGED
|
@@ -3,12 +3,8 @@ import torch
|
|
| 3 |
from transformers import pipeline
|
| 4 |
import numpy as np
|
| 5 |
|
| 6 |
-
pipe_base = pipeline(
|
| 7 |
-
|
| 8 |
-
)
|
| 9 |
-
pipe_small = pipeline(
|
| 10 |
-
"automatic-speech-recognition", model="aitor-medrano/whisper-small-lara"
|
| 11 |
-
)
|
| 12 |
|
| 13 |
def greet(modelo, grabacion):
|
| 14 |
sr, y = grabacion
|
|
|
|
| 3 |
from transformers import pipeline
|
| 4 |
import numpy as np
|
| 5 |
|
| 6 |
+
pipe_base = pipeline("automatic-speech-recognition", model="aitor-medrano/whisper-base-lara")
|
| 7 |
+
pipe_small = pipeline("automatic-speech-recognition", model="aitor-medrano/whisper-small-lara")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
def greet(modelo, grabacion):
|
| 10 |
sr, y = grabacion
|