Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
#15
by
MaziyarPanahi
- opened
app.py
CHANGED
@@ -89,8 +89,8 @@ def bot_streaming(message, history):
|
|
89 |
buffer = ""
|
90 |
time.sleep(0.5)
|
91 |
for new_text in streamer:
|
92 |
-
if "<|
|
93 |
-
break
|
94 |
buffer += new_text
|
95 |
|
96 |
generated_text_without_prompt = buffer
|
|
|
89 |
buffer = ""
|
90 |
time.sleep(0.5)
|
91 |
for new_text in streamer:
|
92 |
+
# if "<|endoftext|>" in new_text:
|
93 |
+
# break
|
94 |
buffer += new_text
|
95 |
|
96 |
generated_text_without_prompt = buffer
|