zenafey commited on
Commit
8f278d3
1 Parent(s): c84504e

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -57,9 +57,9 @@ def place_lora(current_prompt, lora_name):
57
  pattern = r"<lora:" + lora_name + r":.*?>"
58
 
59
  if re.search(pattern, current_prompt):
60
- yield re.sub(pattern, "", current_prompt)
61
  else:
62
- yield current_prompt + " <lora:" + lora_name + ":1> "
63
 
64
 
65
  def plaintext_to_html(text, classname=None):
 
57
  pattern = r"<lora:" + lora_name + r":.*?>"
58
 
59
  if re.search(pattern, current_prompt):
60
+ return re.sub(pattern, "", current_prompt)
61
  else:
62
+ return current_prompt + " <lora:" + lora_name + ":1> "
63
 
64
 
65
  def plaintext_to_html(text, classname=None):