mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 08:57:54 +00:00
fixup tts_inference_job (python still needs writing)
This commit is contained in:
1 parent
a0919fffee
commit
86b9d2ecca
1 file changed
+3
-3
@@ -361,7 +361,9 @@ async fn process_job(inferencer: &Inferencer, job: &TtsInferenceJobRecord) -> An
|
||||
let temp_dir = format!("temp_tts_inference_{}", job.id);
|
||||
let temp_dir = TempDir::new(&temp_dir)?; // NB: Exists until it goes out of scope.
|
||||
|
||||
let text_input_fs_path = None;
|
||||
let text_input_fs_path = temp_dir.path().join("inference_input.txt");
|
||||
|
||||
std::fs::write(&text_input_fs_path, &job.inference_text)?;
|
||||
|
||||
// ==================== RUN INFERENCE ==================== //
|
||||
|
||||
@@ -369,8 +371,6 @@ async fn process_job(inferencer: &Inferencer, job: &TtsInferenceJobRecord) -> An
|
||||
let output_metadata_fs_path = temp_dir.path().join("metadata.json");
|
||||
let output_spectrogram_fs_path = temp_dir.path().join("spectrogram.json");
|
||||
|
||||
let is_image = w2l_template.template_type.contains("image");
|
||||
|
||||
info!("Running TTS inference...");
|
||||
|
||||
info!("Expected output audio filename: {:?}", &output_audio_fs_path);
|
||||
|
||||
Reference in new issue
Block a user