From 1faaad58f0f70bf7fe3857636d9ddb846577e32c Mon Sep 17 00:00:00 2001 From: Xumin Yu <1090414006@qq.com> Date: Sun, 3 Nov 2024 22:38:13 +0800 Subject: [PATCH 1/2] Update input_video.py --- comfy-nodes/input_video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comfy-nodes/input_video.py b/comfy-nodes/input_video.py index 3700aac..7aa45ab 100644 --- a/comfy-nodes/input_video.py +++ b/comfy-nodes/input_video.py @@ -151,7 +151,7 @@ class ShellAgentPluginInputVideo: num_bars = int(file_size / chunk_size) with open(video_path, "wb") as out_file: - for chunk in tqdm( + for chunk in tqdm.tqdm( response.iter_content(chunk_size=chunk_size), total=num_bars, unit="KB", @@ -175,4 +175,4 @@ NODE_CLASS_MAPPINGS = { NODE_DISPLAY_NAME_MAPPINGS = { # "ShellAgentPluginInputImage": "Input Image (ShellAgent Plugin)", "ShellAgentPluginInputVideo": "Input Video (ShellAgent Plugin)" -} \ No newline at end of file +} From 1aa0fc15e249d5de5c4810fe3fba716aff8f9d7f Mon Sep 17 00:00:00 2001 From: Xumin Yu <1090414006@qq.com> Date: Sun, 3 Nov 2024 22:38:56 +0800 Subject: [PATCH 2/2] revert input_video.py --- comfy-nodes/input_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy-nodes/input_video.py b/comfy-nodes/input_video.py index 7aa45ab..c13c029 100644 --- a/comfy-nodes/input_video.py +++ b/comfy-nodes/input_video.py @@ -151,7 +151,7 @@ class ShellAgentPluginInputVideo: num_bars = int(file_size / chunk_size) with open(video_path, "wb") as out_file: - for chunk in tqdm.tqdm( + for chunk in tqdm( response.iter_content(chunk_size=chunk_size), total=num_bars, unit="KB",