ArmelR commited on
Commit
572b214
1 Parent(s): 5c30167

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -121,7 +121,7 @@ def generate(
121
  #print(f"IN_{t}")
122
  if (
123
  (response.token.text in ["Human", "-----", "Question:"] and previous_token in ["\n", "-----"])
124
- or response.token.text in ["<|endoftext|>", "<|end|>", "Answer:"]
125
  ):
126
  print("OUT = "+str(output))
127
  return wrap_html_code(output.strip())
 
121
  #print(f"IN_{t}")
122
  if (
123
  (response.token.text in ["Human", "-----", "Question:"] and previous_token in ["\n", "-----"])
124
+ or response.token.text in ["<|endoftext|>", "<|end|>"]
125
  ):
126
  print("OUT = "+str(output))
127
  return wrap_html_code(output.strip())