Spaces:
Running
Running
XQ commited on
Commit ·
e128a20
1
Parent(s): 0a7ef90
Update UI
Browse files- src/ui/app.py +12 -5
src/ui/app.py
CHANGED
|
@@ -714,11 +714,18 @@ if search_clicked and question.strip():
|
|
| 714 |
elif _step == "tool_call":
|
| 715 |
_tool_name = _event.get("tool", "")
|
| 716 |
_tool_query = _event.get("query", "")
|
| 717 |
-
|
| 718 |
-
(
|
| 719 |
-
|
| 720 |
-
|
| 721 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 722 |
|
| 723 |
elif _step == "tool_result":
|
| 724 |
_rc = _event.get("result_count", 0)
|
|
|
|
| 714 |
elif _step == "tool_call":
|
| 715 |
_tool_name = _event.get("tool", "")
|
| 716 |
_tool_query = _event.get("query", "")
|
| 717 |
+
if _tool_query:
|
| 718 |
+
st.write(
|
| 719 |
+
(f"Værktøj **{_tool_name}** kaldt: _{_tool_query}_")
|
| 720 |
+
if lang == "da"
|
| 721 |
+
else (f"Tool **{_tool_name}** called: _{_tool_query}_")
|
| 722 |
+
)
|
| 723 |
+
else:
|
| 724 |
+
st.write(
|
| 725 |
+
(f"Værktøj **{_tool_name}** kaldt")
|
| 726 |
+
if lang == "da"
|
| 727 |
+
else (f"Tool **{_tool_name}** called")
|
| 728 |
+
)
|
| 729 |
|
| 730 |
elif _step == "tool_result":
|
| 731 |
_rc = _event.get("result_count", 0)
|