From 18d46a0f5762a432dbfedfeec3c6c85a991eaeed Mon Sep 17 00:00:00 2001 From: Kasisnu <5044120+kasisnu@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:06:29 +0530 Subject: [PATCH] bugfix: ignore more than one samples for zs --- .../src/job/job_types/tts/styletts2/process_job_create_voice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/service/job/inference_job/src/job/job_types/tts/styletts2/process_job_create_voice.rs b/crates/service/job/inference_job/src/job/job_types/tts/styletts2/process_job_create_voice.rs index 3c890b3cea..f6ef449880 100644 --- a/crates/service/job/inference_job/src/job/job_types/tts/styletts2/process_job_create_voice.rs +++ b/crates/service/job/inference_job/src/job/job_types/tts/styletts2/process_job_create_voice.rs @@ -160,7 +160,7 @@ pub async fn process_create_voice( // TODO(KS): This is a hack to get only the first file to download // Ideally we could have improved logic to pick the "best" media file from a dataset - if (index > 0) { + if (index >= 0) { break; } }