surkovvv commited on
Commit
91280a4
1 Parent(s): 86ade5e

assistant word deleted

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -41,8 +41,7 @@ def predict(message, history):
41
 
42
  partial_message = ""
43
  for new_token in streamer:
44
- print(new_token)
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