mirror of
https://github.com/trycua/computer.git
synced 2026-05-06 23:21:32 -05:00
removed print statement
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user