StarFox7 commited on
Commit
92614c8
Β·
1 Parent(s): 7f786ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -149,6 +149,7 @@ def bot(history):
149
  temp_str = "".join(response).replace("▁"," ")
150
  if len(temp_str) > 2:
151
  if temp_str[-2:] in stop_string:
 
152
  break
153
  response.append(elm)
154
  history[-1][1] = prefix + "".join(response).replace("▁"," ")
 
149
  temp_str = "".join(response).replace("▁"," ")
150
  if len(temp_str) > 2:
151
  if temp_str[-2:] in stop_string:
152
+ response = response[:-2]
153
  break
154
  response.append(elm)
155
  history[-1][1] = prefix + "".join(response).replace("▁"," ")