Hansimov commited on
Commit
8a167b0
1 Parent(s): aa6ccf1

:boom: [Fix] Remove stop_sequences from content

Browse files
Files changed (1) hide show
  1. networks/huggingface_streamer.py +2 -0
networks/huggingface_streamer.py CHANGED
@@ -165,6 +165,8 @@ class HuggingfaceStreamer:
165
  content_type = "Completions"
166
  if line_count == 1:
167
  content = content.lstrip()
 
 
168
  logger.back(content, end="")
169
 
170
  output = self.message_outputer.output(
 
165
  content_type = "Completions"
166
  if line_count == 1:
167
  content = content.lstrip()
168
+
169
+ content = content.replace(self.stop_sequences, "")
170
  logger.back(content, end="")
171
 
172
  output = self.message_outputer.output(