Samuel L Meyers commited on
Commit
b9c2ca8
·
1 Parent(s): 908a75d

Please just work. Test 9

Browse files
Files changed (1) hide show
  1. code/app.py +2 -1
code/app.py CHANGED
@@ -61,7 +61,8 @@ def talk(txt, jsn):
61
  if not jsn:
62
  jsn = txt
63
  if not running:
64
- if len(txt) >= 3 and txt[-1]["content"][:-4] == "</s>":
 
65
  return txt
66
  txt = printfmt(stowtext(otxt, txt))
67
  otxt = txt
 
61
  if not jsn:
62
  jsn = txt
63
  if not running:
64
+ if len(txt) >= 3 and txt[-1]["content"].endswith("</s>"):
65
+ txt[-1]["content"].replace("</s>", "")
66
  return txt
67
  txt = printfmt(stowtext(otxt, txt))
68
  otxt = txt