deepakkumar07 commited on
Commit
2fad513
·
verified ·
1 Parent(s): 50fb5fd

added model name param

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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