Spaces:
Runtime error
Runtime error
Commit
·
0fb8090
1
Parent(s):
080128f
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ with gr.Blocks() as demo:
|
|
38 |
bot_message = palm.chat(
|
39 |
context=context,
|
40 |
examples=examples,
|
41 |
-
messages=
|
42 |
)
|
43 |
history[-1][1] = ""
|
44 |
for character in bot_message:
|
@@ -49,7 +49,6 @@ with gr.Blocks() as demo:
|
|
49 |
bot, chatbot, chatbot
|
50 |
)
|
51 |
response.then(lambda: gr.update(interactive=True), None, [msg], queue=False)
|
52 |
-
msg.submit(respond,[msg,chatbot],[msg, chatbot])
|
53 |
|
54 |
demo.queue()
|
55 |
demo.launch()
|
|
|
38 |
bot_message = palm.chat(
|
39 |
context=context,
|
40 |
examples=examples,
|
41 |
+
messages=history
|
42 |
)
|
43 |
history[-1][1] = ""
|
44 |
for character in bot_message:
|
|
|
49 |
bot, chatbot, chatbot
|
50 |
)
|
51 |
response.then(lambda: gr.update(interactive=True), None, [msg], queue=False)
|
|
|
52 |
|
53 |
demo.queue()
|
54 |
demo.launch()
|