From df6d3c68f63cd5c8e2094fb01dfbd0dd0eb37e8e Mon Sep 17 00:00:00 2001 From: Kye Date: Sun, 16 Jul 2023 15:52:00 -0400 Subject: [PATCH] cleanup Former-commit-id: ac44a278d917e4c05b8800b46904a89d230e0eaf --- swarms/agents/workers/WorkerUltraNode.py | 2 +- worker_ultra.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/swarms/agents/workers/WorkerUltraNode.py b/swarms/agents/workers/WorkerUltraNode.py index 10eb0459..fd90e924 100644 --- a/swarms/agents/workers/WorkerUltraNode.py +++ b/swarms/agents/workers/WorkerUltraNode.py @@ -108,4 +108,4 @@ class WorkerUltra: return self.worker_node.execute_task() except Exception as e: logging.error(f"Error while executing: {str(e)}") - raise e + raise e \ No newline at end of file diff --git a/worker_ultra.py b/worker_ultra.py index a6981b28..d4ad3cf0 100644 --- a/worker_ultra.py +++ b/worker_ultra.py @@ -15,7 +15,11 @@ I want it to have neumorphism-style. Serve it on port 4500. """ -node = WorkerUltra(objective, api_key=api_key) +# Create an instance of WorkerUltra +worker = WorkerUltra(objective, api_key) +# Execute the task +result = worker.execute() -result = node.execute() \ No newline at end of file +# Print the result +print(result) \ No newline at end of file