From c64a865f9a5de85328bbf441a74293f54e06bd0b Mon Sep 17 00:00:00 2001 From: Sam Khoze <68170403+SamKhoze@users.noreply.github.com> Date: Sun, 16 Jun 2024 11:10:01 +0530 Subject: [PATCH] Update nodes.py --- nodes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodes.py b/nodes.py index e353a78..44f834e 100644 --- a/nodes.py +++ b/nodes.py @@ -1469,12 +1469,12 @@ class TTS_generation: CATEGORY = "DeepFuze" # Category for the node in the UI - def generate_audio(self, audio,llm_text, text,device,supported_language): + def generate_audio(self, audio,llm_response, text,device,supported_language): - if not llm_text and not text: + if not llm_response and not text: raise ValueError("Please provide LLM_response or enter text") if llm_text: - text = llm_text + text = llm_response language = supported_language.split("(")[1][:-1] file_path = os.path.join(audio_path,str(time.time()).replace(".","")+".wav")