Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

removed print statement

Dillon DuPont49b54f6f9620
diff --git a/libs/agent/agent/ui/gradio/app.py b/libs/agent/agent/ui/gradio/app.py
index e455cf398f..a3a017bda0 100644
--- a/libs/agent/agent/ui/gradio/app.py
+++ b/libs/agent/agent/ui/gradio/app.py
@@ -242,8 +242,7 @@ def extract_synthesized_text(result: Union[AgentResponse, Dict[str, Any]]) -> Tu
if text_value:
synthesized_text += f"{text_value}\n"
- elif output.get("type") == "computer_call":
- metadata["title"] = "🛠️ Used Computer"
+ elif output.get("type") == "computer_call":
action = output.get("action", {})
action_type = action.get("type", "")
@@ -267,6 +266,7 @@ def extract_synthesized_text(result: Union[AgentResponse, Dict[str, Any]]) -> Tu
else:
synthesized_text += f"Performed {action_type} action.\n"
+ metadata["status"] = "done"
metadata["title"] = f"🛠️ {synthesized_text.strip().splitlines()[-1]}"
return synthesized_text.strip(), metadata
@@ -410,9 +410,6 @@ def process_agent_result(result: Union[AgentResponse, Dict[str, Any]]) -> Tuple[
if not isinstance(content, str):
content = str(content) if content else ""
- print(content)
- print(metadata)
-
return content, metadata
def create_gradio_ui(