broadfield commited on
Commit
75c35f4
·
verified ·
1 Parent(s): 1cb3b4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def generate(prompt,history,max_new_tokens,seed):
36
  output = ""
37
  buf = ""
38
  for response in stream:
39
- if response.token.text == "\n":
40
  yield from pp.stream_tts(buf)
41
  buf=""
42
  buf += response.token.text
 
36
  output = ""
37
  buf = ""
38
  for response in stream:
39
+ if response.token.text == "\n" or response.token.text == "</s>":
40
  yield from pp.stream_tts(buf)
41
  buf=""
42
  buf += response.token.text