Commit
•
c3b074e
1
Parent(s):
b72e7b5
add code
Browse files
app.py
CHANGED
@@ -154,8 +154,9 @@ async def stream_from_agent(
|
|
154 |
)
|
155 |
if d["id"] in tool_result.ids:
|
156 |
paths.append(d["path"])
|
|
|
157 |
gr_message["content"] = (
|
158 |
-
f"Relevant Context:\n {
|
159 |
)
|
160 |
yield AdditionalOutputs(chatbot, gr.skip())
|
161 |
chatbot.append({"role": "assistant", "content": ""})
|
|
|
154 |
)
|
155 |
if d["id"] in tool_result.ids:
|
156 |
paths.append(d["path"])
|
157 |
+
paths = '\n'.join(list(set(paths)))
|
158 |
gr_message["content"] = (
|
159 |
+
f"Relevant Context:\n {paths}"
|
160 |
)
|
161 |
yield AdditionalOutputs(chatbot, gr.skip())
|
162 |
chatbot.append({"role": "assistant", "content": ""})
|