alibabasglab commited on
Commit
17e3ef6
·
verified ·
1 Parent(s): 58f8c9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ def score_file(test_file, ref_file, score_list_nis, score_list_is):
16
  if score_list_is is not None:
17
  score_list += score_list_is
18
  mySpeechScore = SpeechScore(score_list)
19
- scores = mySpeechScore(test_path=test_file, reference_path=ref_file, window=None, score_rate=16000, return_mean=False)
20
  return scores
21
 
22
  def score_mic(test_file, score_list_nis):
@@ -24,7 +24,7 @@ def score_mic(test_file, score_list_nis):
24
  if score_list_nis is not None:
25
  score_list += score_list_nis
26
  mySpeechScore = SpeechScore(score_list)
27
- scores = mySpeechScore(test_path=test_file, reference_path=None, window=None, score_rate=16000, return_mean=False)
28
  return scores
29
 
30
  demo = gr.Blocks()
 
16
  if score_list_is is not None:
17
  score_list += score_list_is
18
  mySpeechScore = SpeechScore(score_list)
19
+ scores = mySpeechScore(test_path=test_file, reference_path=ref_file, window=None, score_rate=16000, return_mean=False, round_digits=2)
20
  return scores
21
 
22
  def score_mic(test_file, score_list_nis):
 
24
  if score_list_nis is not None:
25
  score_list += score_list_nis
26
  mySpeechScore = SpeechScore(score_list)
27
+ scores = mySpeechScore(test_path=test_file, reference_path=None, window=None, score_rate=16000, return_mean=False, round_digits=2)
28
  return scores
29
 
30
  demo = gr.Blocks()