ArmelR commited on
Commit
8f202e2
1 Parent(s): 9e92718

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -111,7 +111,7 @@ def generate(
111
  if (
112
  (response.token.text in ["Human", "-----", "Question:"]
113
  and previous_token in ["\n", "-----"])
114
- or response.token.text == "<|endoftext|>"
115
  ):
116
  return output.strip()
117
  else:
 
111
  if (
112
  (response.token.text in ["Human", "-----", "Question:"]
113
  and previous_token in ["\n", "-----"])
114
+ or response.token.text in ["<|endoftext|>", "<|end|>", "Answer:"]
115
  ):
116
  return output.strip()
117
  else: