From 00460ccf96289d9c38fb94458856d70d7e350bce Mon Sep 17 00:00:00 2001 From: Kye Date: Fri, 22 Sep 2023 18:03:47 -0400 Subject: [PATCH] cleanup --- example.py | 30 +++++++++++++++--------------- pyproject.toml | 2 +- swarms/swarms/orchestrate.py | 1 - 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/example.py b/example.py index 1803f3b2..097124fa 100644 --- a/example.py +++ b/example.py @@ -1,23 +1,23 @@ -# from swarms import Worker +from swarms import Worker -# node = Worker( -# openai_api_key="", -# ai_name="Optimus Prime", +node = Worker( + openai_api_key="", + ai_name="Optimus Prime", -# ) +) -# task = "What were the winning boston marathon times for the past 5 years (ending in 2022)? Generate a table of the year, name, country of origin, and times." -# response = node.run(task) -# print(response) +task = "What were the winning boston marathon times for the past 5 years (ending in 2022)? Generate a table of the year, name, country of origin, and times." +response = node.run(task) +print(response) -from swarms import Workflow -from swarms.tools.autogpt import ChatOpenAI +# from swarms import Workflow +# from swarms.tools.autogpt import ChatOpenAI -workflow = Workflow(ChatOpenAI) +# workflow = Workflow(ChatOpenAI) -workflow.add("What's the weather in miami") -workflow.add("Provide details for {{ parent_output }}") -workflow.add("Summarize the above information: {{ parent_output}}") +# workflow.add("What's the weather in miami") +# workflow.add("Provide details for {{ parent_output }}") +# workflow.add("Summarize the above information: {{ parent_output}}") -workflow.run() +# workflow.run() diff --git a/pyproject.toml b/pyproject.toml index 2bff650a..080b0ad0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "swarms" -version = "1.6.1" +version = "1.6.2" description = "Swarms - Pytorch" license = "MIT" authors = ["Kye Gomez "] diff --git a/swarms/swarms/orchestrate.py b/swarms/swarms/orchestrate.py index 014f8925..fde746b7 100644 --- a/swarms/swarms/orchestrate.py +++ b/swarms/swarms/orchestrate.py @@ -1,7 +1,6 @@ import logging import queue import threading -# from abc import ABC, abstractmethod from concurrent.futures import ThreadPoolExecutor from typing import Any, Dict, List from enum import Enum