Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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("β"," ")
|