Spaces:
Sleeping
Sleeping
assistant word deleted
Browse files
app.py
CHANGED
@@ -41,8 +41,7 @@ def predict(message, history):
|
|
41 |
|
42 |
partial_message = ""
|
43 |
for new_token in streamer:
|
44 |
-
|
45 |
-
if new_token != 'assistant':
|
46 |
partial_message += new_token
|
47 |
yield partial_message
|
48 |
|
|
|
41 |
|
42 |
partial_message = ""
|
43 |
for new_token in streamer:
|
44 |
+
if 'assistant' not in new_token:
|
|
|
45 |
partial_message += new_token
|
46 |
yield partial_message
|
47 |
|