Kamtera commited on
Commit
19a72ca
·
1 Parent(s): 01ff6b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- else if model== "ghofrani/common8":
24
  text = model1(speech,return_timestamps="word" )
25
- else if model== "voidful/wav2vec2-xlsr-multilingual-56":
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