diff --git a/example.py b/example.py index 1a950970..124b5b18 100644 --- a/example.py +++ b/example.py @@ -46,14 +46,16 @@ # agent.run("Help me find resources about renewable energy.") -################### -from swarms.workers.worker_node import worker_node +################ +from swarms import WorkerNode # Your OpenAI API key -api_key = "sksdsds" +api_key = "example key" + # Initialize a WorkerNode with your API key -node = worker_node(api_key) +node = WorkerNode(api_key) +node.create_worker_node() # Define an objective objective = "Please make a web GUI for using HTTP API server..." diff --git a/pyproject.toml b/pyproject.toml index bcfe2191..5b8609c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "swarms" -version = "1.3.9" +version = "1.4.0" description = "Swarms - Pytorch" license = "MIT" authors = ["Kye Gomez "] @@ -30,6 +30,7 @@ asyncio = "*" nest_asyncio = "*" pegasusx = "*" google-generativeai = "*" +torch = "*" langchain-experimental = "*" playwright = "*" duckduckgo_search = "*"