Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -147,6 +147,9 @@ with gr.Blocks() as demo:
|
|
| 147 |
else:
|
| 148 |
history[-1][1] += delta
|
| 149 |
yield history
|
|
|
|
|
|
|
|
|
|
| 150 |
|
| 151 |
msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
|
| 152 |
fn=bot,
|
|
|
|
| 147 |
else:
|
| 148 |
history[-1][1] += delta
|
| 149 |
yield history
|
| 150 |
+
if history[-1][1].endswith('</s>'):
|
| 151 |
+
history[-1][1] = history[-1][1][:-4]
|
| 152 |
+
yield history
|
| 153 |
|
| 154 |
msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
|
| 155 |
fn=bot,
|