Spaces:
Runtime error
Runtime error
Commit
·
31fb46e
1
Parent(s):
edcae7e
Update app.py
Browse files
app.py
CHANGED
@@ -35,11 +35,10 @@ with gr.Blocks() as demo:
|
|
35 |
return gr.update(value="", interactive=False), history + [[user_message, None]]
|
36 |
def bot(history):
|
37 |
# chat_history.append(message) # Initialize chat history
|
38 |
-
print(history)
|
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:
|
|
|
35 |
return gr.update(value="", interactive=False), history + [[user_message, None]]
|
36 |
def bot(history):
|
37 |
# chat_history.append(message) # Initialize chat history
|
|
|
38 |
bot_message = palm.chat(
|
39 |
context=context,
|
40 |
examples=examples,
|
41 |
+
messages=history[1]
|
42 |
)
|
43 |
history[-1][1] = ""
|
44 |
for character in bot_message:
|