Pendrokar commited on
Commit
82bcf4e
1 Parent(s): c81a597

cache sample even if the other TTS model fails

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1099,7 +1099,10 @@ def synthandreturn(text):
1099
  if (already_cached):
1100
  continue
1101
 
1102
- cached_samples.append(Sample(results[model], text, model))
 
 
 
1103
 
1104
  # all_pairs = generate_matching_pairs(cached_samples)
1105
 
 
1099
  if (already_cached):
1100
  continue
1101
 
1102
+ try:
1103
+ cached_samples.append(Sample(results[model], text, model))
1104
+ except:
1105
+ pass
1106
 
1107
  # all_pairs = generate_matching_pairs(cached_samples)
1108