From 7c5c0bf1d25a074a20fada83bbfd0b96a3f2a070 Mon Sep 17 00:00:00 2001 From: AIFSH <149982694+AIFSH@users.noreply.github.com> Date: Thu, 20 Jun 2024 15:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20nodes.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodes.py b/nodes.py index 61e8752..2f6cc8e 100644 --- a/nodes.py +++ b/nodes.py @@ -22,7 +22,7 @@ class PreViewAudio: @classmethod def INPUT_TYPES(s): return {"required": - {"audio": ("AUDIO",),} + {"audio": ("AUDIOPATH",),} } CATEGORY = "AIFSH_UVR5" @@ -50,7 +50,7 @@ class PreViewAudio: return m.digest().hex() -class LoadAudio: +class LoadAudioPath: @classmethod def INPUT_TYPES(s): input_dir = input_path @@ -61,7 +61,7 @@ class LoadAudio: CATEGORY = "AIFSH_UVR5" - RETURN_TYPES = ("AUDIO",) + RETURN_TYPES = ("AUDIOPATH",) FUNCTION = "load_audio" def load_audio(self, audio): @@ -131,7 +131,7 @@ class UVR5: "VR-DeEchoAggressive.pth","VR-DeEchoDeReverb.pth","VR-DeEchoNormal.pth","onnx_dereverb_By_FoxJoy"] return { "required": { - "audio": ("AUDIO",), + "audio": ("AUDIOPATH",), "model": (model_list,{ "default": "HP5-主旋律人声vocals+其他instrumentals.pth" }),