Spaces:
Build error
Build error
MaziyarPanahi
commited on
Commit
•
3a84945
1
Parent(s):
099dbb9
Update app.py (#15)
Browse files- Update app.py (6f45dd047ebc014802bd29c12d9e392b5336f119)
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
|