Spaces:
Sleeping
Sleeping
Commit
·
331a826
1
Parent(s):
3825673
Update app.py
Browse files
app.py
CHANGED
@@ -58,13 +58,15 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
58 |
|
59 |
def bot(history):
|
60 |
try:
|
|
|
61 |
bot_message = palm.chat(
|
62 |
context=context,
|
63 |
examples=examples,
|
64 |
-
messages=history[-1][0]
|
|
|
65 |
)
|
66 |
|
67 |
-
history[-1][1] = ""
|
68 |
for character in bot_message.last:
|
69 |
history[-1][1] += character
|
70 |
time.sleep(0.005)
|
|
|
58 |
|
59 |
def bot(history):
|
60 |
try:
|
61 |
+
history.append("NEXT REQUEST")
|
62 |
bot_message = palm.chat(
|
63 |
context=context,
|
64 |
examples=examples,
|
65 |
+
# messages=history[-1][0]
|
66 |
+
messages=history
|
67 |
)
|
68 |
|
69 |
+
# history[-1][1] = ""
|
70 |
for character in bot_message.last:
|
71 |
history[-1][1] += character
|
72 |
time.sleep(0.005)
|