jedeland commited on
Commit
062b1e0
·
1 Parent(s): 6051851
Files changed (1) hide show
  1. lora.py +2 -2
lora.py CHANGED
@@ -70,9 +70,9 @@ def submit_to_model():
70
  content = ""
71
  for text in text_streamer:
72
  print(text)
73
- if text.endswith("<|eot_id|>"):
74
- text = text.replace("<|eot_id|>", "")
75
  content += text
 
 
76
  yield content
77
 
78
 
 
70
  content = ""
71
  for text in text_streamer:
72
  print(text)
 
 
73
  content += text
74
+ if content.endswith("<|eot_id|>"):
75
+ content = content.replace("<|eot_id|>", "")
76
  yield content
77
 
78