Update nodes.py

This commit is contained in:
Sam Khoze
2024-06-18 09:01:25 +05:30
committed by GitHub
parent ff78a7ad1c
commit 29f0921e10
+2 -2
View File
@@ -1483,7 +1483,7 @@ class TTS_generation:
"audio": ("AUDIO",),
},
"optional": {
"llm_response": ("NEW_STRING",),
"llm_response": ("NEW_STRING",{"default":""}),
"text": ("STRING",{
"multiline": True,
"default": ""
@@ -1498,7 +1498,7 @@ class TTS_generation:
CATEGORY = "DeepFuze" # Category for the node in the UI
def generate_audio(self, audio,llm_response, text,device,supported_language):
def generate_audio(self, audio, text,device,supported_language,llm_response=""):
if not llm_response and not text:
raise ValueError("Please provide LLM_response or enter text")