added model name param
Browse files
app.py
CHANGED
@@ -14,7 +14,8 @@ def initialize_pipeline(model_name):
|
|
14 |
return model_name
|
15 |
|
16 |
|
17 |
-
def transcribe(audio):
|
|
|
18 |
text = pipe(audio)["text"]
|
19 |
return text
|
20 |
|
|
|
14 |
return model_name
|
15 |
|
16 |
|
17 |
+
def transcribe(audio, model_name):
|
18 |
+
pipe.model = model_name
|
19 |
text = pipe(audio)["text"]
|
20 |
return text
|
21 |
|