Update app.py
Browse files
app.py
CHANGED
@@ -20,9 +20,9 @@ import json
|
|
20 |
def predict_fa(speech,model):
|
21 |
if model== "SLPL/Sharif-wav2vec2":
|
22 |
text = model(speech,return_timestamps="word" )
|
23 |
-
|
24 |
text = model1(speech,return_timestamps="word" )
|
25 |
-
|
26 |
text = model0(speech,return_timestamps="word" )
|
27 |
return [text['text'],json.dumps(text)]
|
28 |
|
|
|
20 |
def predict_fa(speech,model):
|
21 |
if model== "SLPL/Sharif-wav2vec2":
|
22 |
text = model(speech,return_timestamps="word" )
|
23 |
+
elif model== "ghofrani/common8":
|
24 |
text = model1(speech,return_timestamps="word" )
|
25 |
+
elif model== "voidful/wav2vec2-xlsr-multilingual-56":
|
26 |
text = model0(speech,return_timestamps="word" )
|
27 |
return [text['text'],json.dumps(text)]
|
28 |
|