alibabasglab commited on
Commit
2fa8adf
1 Parent(s): 8d66ced

Update basis.py

Browse files
Files changed (1) hide show
  1. basis.py +4 -1
basis.py CHANGED
@@ -37,10 +37,13 @@ class ScoreBasis:
37
  result = {}
38
  for (t, win) in enumerate(framer):
39
  result_t = self.windowed_scoring([audio[win] for audio in audios], score_rate)
40
- result[t] = result_t
 
41
  else:
42
  result = self.windowed_scoring(audios, score_rate)
43
 
 
 
44
  if round_digits is not None:
45
  if isinstance(result, dict):
46
  for key in result:
 
37
  result = {}
38
  for (t, win) in enumerate(framer):
39
  result_t = self.windowed_scoring([audio[win] for audio in audios], score_rate)
40
+ if result_t is not None:
41
+ result[t] = result_t
42
  else:
43
  result = self.windowed_scoring(audios, score_rate)
44
 
45
+ if result is None or not result: return None
46
+
47
  if round_digits is not None:
48
  if isinstance(result, dict):
49
  for key in result: