fix: remove asyncio.run for pipeline execution in LightX2VModularInference, improving compatibility with synchronous calls

This commit is contained in:
gaclove
2025-07-16 18:36:45 +08:00
parent 9d83911363
commit 3c416d02d1
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
"""Modular ComfyUI nodes for LightX2V without presets."""
import asyncio
import gc
import hashlib
import json
@@ -478,7 +477,7 @@ class LightX2VModularInference:
self._current_runner.set_progress_callback(update_progress)
if hasattr(self._current_runner, "run_pipeline"):
images = asyncio.run(self._current_runner.run_pipeline(save_video=False))
images = self._current_runner.run_pipeline(save_video=False)
else:
images = self._current_runner()