tori29umai commited on
Commit
75c378c
β€’
1 Parent(s): d7c97a3

Update utils/prompt_utils.py

Browse files
Files changed (1) hide show
  1. utils/prompt_utils.py +1 -2
utils/prompt_utils.py CHANGED
@@ -23,6 +23,5 @@ def remove_color(base_prompt):
23
  def execute_prompt(execute_tags, base_prompt):
24
  prompt_list = base_prompt.split(", ")
25
  # execute_tagsγ‚’ι™€εŽ»
26
- filtered_tags = [tag for tag in prompt_list if tag not in execute_tags]
27
- # ζœ€η΅‚ηš„γͺγƒ—γƒ­γƒ³γƒ—γƒˆγ‚’η”Ÿζˆ
28
  return ", ".join(filtered_tags)
 
23
  def execute_prompt(execute_tags, base_prompt):
24
  prompt_list = base_prompt.split(", ")
25
  # execute_tagsγ‚’ι™€εŽ»
26
+ filtered_tags = [tag for tag in prompt_list if all(execute_tag.lower() not in tag.lower() for execute_tag in execute_tags)]
 
27
  return ", ".join(filtered_tags)