Spaces:
Runtime error
Runtime error
Commit
·
9286ede
1
Parent(s):
f0191e2
Update app.py
Browse files
app.py
CHANGED
@@ -36,11 +36,10 @@ with gr.Blocks() as demo:
|
|
36 |
def bot(history):
|
37 |
# Remove the second element of the last element of the list
|
38 |
# del history[-1][1]
|
39 |
-
print(history[-1][0])
|
40 |
bot_message = palm.chat(
|
41 |
context=context,
|
42 |
examples=examples,
|
43 |
-
messages=history[-
|
44 |
)
|
45 |
history[-1][1] = ""
|
46 |
for character in bot_message.last:
|
|
|
36 |
def bot(history):
|
37 |
# Remove the second element of the last element of the list
|
38 |
# del history[-1][1]
|
|
|
39 |
bot_message = palm.chat(
|
40 |
context=context,
|
41 |
examples=examples,
|
42 |
+
messages=history[-1][0]
|
43 |
)
|
44 |
history[-1][1] = ""
|
45 |
for character in bot_message.last:
|