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

Update utils/prompt_utils.py

Browse files
Files changed (1) hide show
  1. utils/prompt_utils.py +2 -2
utils/prompt_utils.py CHANGED
@@ -22,6 +22,6 @@ def remove_color(base_prompt):
22
 
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)
 
22
 
23
  def execute_prompt(execute_tags, base_prompt):
24
  prompt_list = base_prompt.split(", ")
25
+ # execute_tagsγ«ε«γΎγ‚Œγ‚‹ε˜θͺžγŒ1γ€γ§γ‚‚ε«γΎγ‚Œγ¦γ„γŸγ‚‰ι™€εŽ»
26
+ filtered_tags = [tag for tag in prompt_list if not any(execute_tag in tag for execute_tag in execute_tags)]
27
  return ", ".join(filtered_tags)