Spaces:
Runtime error
Runtime error
Commit
·
2fbfaae
1
Parent(s):
8360277
Update app.py
Browse files
app.py
CHANGED
@@ -33,12 +33,10 @@ with gr.Blocks() as demo:
|
|
33 |
|
34 |
def respond(message,chat_history):
|
35 |
chat_history.append(message) # Initialize chat history
|
36 |
-
messages = [palm.discuss._make_message(message) for message in chat_history]
|
37 |
-
|
38 |
bot_message = palm.chat(
|
39 |
-
**defaults,
|
40 |
context=context,
|
41 |
-
|
|
|
42 |
)
|
43 |
time.sleep(2)
|
44 |
return "", chat_history
|
|
|
33 |
|
34 |
def respond(message,chat_history):
|
35 |
chat_history.append(message) # Initialize chat history
|
|
|
|
|
36 |
bot_message = palm.chat(
|
|
|
37 |
context=context,
|
38 |
+
examples=examples,
|
39 |
+
messages=chat_history
|
40 |
)
|
41 |
time.sleep(2)
|
42 |
return "", chat_history
|