Spaces:
Running
Running
cache sample even if the other TTS model fails
Browse files
app.py
CHANGED
@@ -1099,7 +1099,10 @@ def synthandreturn(text):
|
|
1099 |
if (already_cached):
|
1100 |
continue
|
1101 |
|
1102 |
-
|
|
|
|
|
|
|
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 |
|