Skip to content

Commit

Permalink
[FIX][execute_futures_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Dec 1, 2023
1 parent 1c280b1 commit 452bf7d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions futures.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import concurrent.futures
import time
import random
import swarms.utils.futures
import swarms.utils.execute_futures


def f(x):
Expand All @@ -11,4 +11,4 @@ def f(x):

with concurrent.futures.ThreadPoolExecutor() as executor:
fs_dict = {str(i): executor.submit(f, i) for i in range(10)}
print(swarms.utils.futures.execute_futures_dict(fs_dict))
print(swarms.utils.execute_futures.execute_futures_dict(fs_dict))
2 changes: 1 addition & 1 deletion swarms/memory/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from dataclasses import dataclass
from typing import Optional, Any
from attr import define, field, Factory
from swarms.utils.futures import execute_futures_dict
from swarms.utils.execute_futures import execute_futures_dict
from griptape.artifacts import TextArtifact


Expand Down
2 changes: 1 addition & 1 deletion swarms/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from swarms.utils.markdown_message import display_markdown_message
from swarms.utils.futures import execute_futures_dict
from swarms.utils.execute_futures import execute_futures_dict
from swarms.utils.code_interpreter import SubprocessCodeInterpreter
from swarms.utils.parse_code import (
extract_code_in_backticks_in_string,
Expand Down
File renamed without changes.

0 comments on commit 452bf7d

Please sign in to comment.