Spaces:
Runtime error
Runtime error
:boom: [Fix] Remove stop_sequences from content
Browse files
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(
|