Spaces:
Runtime error
Runtime error
Commit
·
e3d17ed
1
Parent(s):
66b97fa
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ with gr.Blocks() as demo:
|
|
39 |
bot_message = palm.chat(
|
40 |
context=context,
|
41 |
examples=examples,
|
42 |
-
messages=history
|
43 |
)
|
44 |
history[-1][1] = ""
|
45 |
for character in bot_message:
|
|
|
39 |
bot_message = palm.chat(
|
40 |
context=context,
|
41 |
examples=examples,
|
42 |
+
messages=history[:-2]
|
43 |
)
|
44 |
history[-1][1] = ""
|
45 |
for character in bot_message:
|