user01 commited on
Commit
0948dad
1 Parent(s): b0c7e12

[update] cli package

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ def speaker_verification(audio_path1, audio_path2, lang='CN'):
60
  else:
61
  output = OUTPUT_ERROR.format('Please select a language')
62
  return output
63
- cos_score = wespeaker.compute_similarity(audio_path1, audio_path2)
64
 
65
  if cos_score >= 0.70:
66
  output = OUTPUT_OK.format(cos_score * 100)
 
60
  else:
61
  output = OUTPUT_ERROR.format('Please select a language')
62
  return output
63
+ cos_score = model.compute_similarity(audio_path1, audio_path2)
64
 
65
  if cos_score >= 0.70:
66
  output = OUTPUT_OK.format(cos_score * 100)