mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-06-05 14:54:54 +00:00
Update prompt_extend.py
fix `tar_lang` inconsistency
This commit is contained in:
parent
b58b7c5737
commit
84d7ebd794
@ -128,8 +128,8 @@ class PromptExpander:
|
||||
def extend(self, prompt, system_prompt, seed=-1, *args, **kwargs):
|
||||
pass
|
||||
|
||||
def decide_system_prompt(self, tar_lang="zh"):
|
||||
zh = tar_lang == "zh"
|
||||
def decide_system_prompt(self, tar_lang="ch"):
|
||||
zh = tar_lang == "ch"
|
||||
if zh:
|
||||
return LM_ZH_SYS_PROMPT if not self.is_vl else VL_ZH_SYS_PROMPT
|
||||
else:
|
||||
@ -137,7 +137,7 @@ class PromptExpander:
|
||||
|
||||
def __call__(self,
|
||||
prompt,
|
||||
tar_lang="zh",
|
||||
tar_lang="ch",
|
||||
image=None,
|
||||
seed=-1,
|
||||
*args,
|
||||
|
Loading…
Reference in New Issue
Block a user