Spaces:
Sleeping
Sleeping
Commit
·
33adf11
1
Parent(s):
4eefc12
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ agent_chain = AgentExecutor.from_agent_and_tools(
|
|
54 |
# )
|
55 |
def chat(prompt):
|
56 |
res = agent_chain.run(input=prompt)
|
57 |
-
return res,
|
58 |
|
59 |
iface = gr.Interface(
|
60 |
fn=chat,
|
|
|
54 |
# )
|
55 |
def chat(prompt):
|
56 |
res = agent_chain.run(input=prompt)
|
57 |
+
return res,agent_chain.memory.chat_memory.messages
|
58 |
|
59 |
iface = gr.Interface(
|
60 |
fn=chat,
|