mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-01 16:08:30 +00:00
retain all tts job results
This commit is contained in:
1 parent
b6279776af
commit
f807239a44
1 file changed
+7
+7
@@ -293,6 +293,13 @@ fn records_to_response(records: Vec<GenericInferenceJobStatus>) -> Result<Json<L
|
||||
if record.status.status != JobStatusPlus::CompleteSuccess {
|
||||
return true;
|
||||
}
|
||||
match record.request.inference_category {
|
||||
// Show all audio results
|
||||
InferenceCategory::TextToSpeech
|
||||
| InferenceCategory::VoiceConversion => return true,
|
||||
// Fall through for everything else
|
||||
_ => {},
|
||||
}
|
||||
success_count += 1;
|
||||
success_count <= 3
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user