From 831cbf9a2e35772ccacd0d5ea55b27b6d24da8c4 Mon Sep 17 00:00:00 2001 From: Kye Date: Mon, 11 Sep 2023 13:14:31 -0400 Subject: [PATCH] no shapeless Former-commit-id: 8bf8dc89464361194db8a17c48b5a4776b4b44b0 --- pyproject.toml | 3 +-- swarms/__init__.py | 2 +- swarms/artifacts/error_artifact.py | 4 ++-- swarms/orchestrator/autoscaler.py | 4 ++-- swarms/structs/task.py | 4 ++-- swarms/workflows/main.py | 4 ++-- 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ed2f9484..cf1133f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "swarms" -version = "1.5.4" +version = "1.5.7" description = "Swarms - Pytorch" license = "MIT" authors = ["Kye Gomez "] @@ -42,7 +42,6 @@ ggl = "*" beautifulsoup4 = "*" pydantic = "*" tenacity = "*" -celery = "*" redis = "*" Pillow = "*" shapeless="*" diff --git a/swarms/__init__.py b/swarms/__init__.py index 771cd194..1ce77ae6 100644 --- a/swarms/__init__.py +++ b/swarms/__init__.py @@ -1,5 +1,5 @@ #swarms -from swarms.orchestrator.autoscaler import AutoScaler +#from swarms.orchestrator.autoscaler import AutoScaler # worker # from swarms.workers.worker_node import WorkerNode diff --git a/swarms/artifacts/error_artifact.py b/swarms/artifacts/error_artifact.py index 95c66bf6..fc5cbcb7 100644 --- a/swarms/artifacts/error_artifact.py +++ b/swarms/artifacts/error_artifact.py @@ -1,6 +1,6 @@ -from shapeless import shapeless +#from shapeless import shapeless -@shapeless +#@shapeless class ErrorArtifact: def __init__( self, diff --git a/swarms/orchestrator/autoscaler.py b/swarms/orchestrator/autoscaler.py index 43d15000..fbab09d7 100644 --- a/swarms/orchestrator/autoscaler.py +++ b/swarms/orchestrator/autoscaler.py @@ -4,13 +4,13 @@ from time import sleep from swarms.workers.worker import Worker from swarms.utils.decorators import error_decorator, log_decorator, timing_decorator -from shapeless import shapeless +#from shapeless import shapeless # TODO Handle task assignment and task delegation # TODO: User task => decomposed into very small sub tasks => sub tasks assigned to workers => workers complete and update the swarm, can ask for help from other agents. # TODO: Missing, Task Assignment, Task delegation, Task completion, Swarm level communication with vector db -@shapeless +#@shapeless class AutoScaler: @log_decorator @error_decorator diff --git a/swarms/structs/task.py b/swarms/structs/task.py index 3ab23f19..0f011f69 100644 --- a/swarms/structs/task.py +++ b/swarms/structs/task.py @@ -1,8 +1,8 @@ from abc import ABC -from shapeless import shapeless +#from shapeless import shapeless -@shapeless +#@shapeless class BaseTask(ABC): def __init__( self, diff --git a/swarms/workflows/main.py b/swarms/workflows/main.py index 8c722f5d..61f224c6 100644 --- a/swarms/workflows/main.py +++ b/swarms/workflows/main.py @@ -9,13 +9,13 @@ from logging import Logger from typing import Optional, Union from rich.logging import RichHandler -from shapeless import shapeless +#from shapeless import shapeless from swarms.artifacts.error_artifact import ErrorArtifact from swarms.structs.task import BaseTask -@shapeless +#@shapeless class Workflow(ABC): def __init__( self,