[FIX][execute_futures_dict

pull/243/head 2.5.0
Kye 1 year ago
parent 1c280b1fe0
commit 452bf7dd21

@ -1,7 +1,7 @@
import concurrent.futures import concurrent.futures
import time import time
import random import random
import swarms.utils.futures import swarms.utils.execute_futures
def f(x): def f(x):
@ -11,4 +11,4 @@ def f(x):
with concurrent.futures.ThreadPoolExecutor() as executor: with concurrent.futures.ThreadPoolExecutor() as executor:
fs_dict = {str(i): executor.submit(f, i) for i in range(10)} 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))

@ -3,7 +3,7 @@ from concurrent import futures
from dataclasses import dataclass from dataclasses import dataclass
from typing import Optional, Any from typing import Optional, Any
from attr import define, field, Factory 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 from griptape.artifacts import TextArtifact

@ -1,5 +1,5 @@
from swarms.utils.markdown_message import display_markdown_message 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.code_interpreter import SubprocessCodeInterpreter
from swarms.utils.parse_code import ( from swarms.utils.parse_code import (
extract_code_in_backticks_in_string, extract_code_in_backticks_in_string,

Loading…
Cancel
Save