refactor: Replace asyncio.run with synchronous get_lora_info calls in LoraManagerLoader, LoraStacker, WanVideoLoraSelect, and ApiRoutes. See #282

This commit is contained in:
Will Miao
2025-07-11 07:24:33 +08:00
parent 6f8e09fcde
commit 5de16a78c5
5 changed files with 47 additions and 25 deletions

View File

@@ -827,7 +827,7 @@ class ApiRoutes:
all_trigger_words = []
for lora_name in lora_names:
_, trigger_words = await get_lora_info(lora_name)
_, trigger_words = get_lora_info(lora_name)
all_trigger_words.extend(trigger_words)
# Format the trigger words