Skip to content

Commit 1d177c8

Browse files
committed
Cleanup
1 parent ae02525 commit 1d177c8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

benchmark.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from typing import Callable, Dict, Generic, List, Literal, NotRequired, Optional, Tuple, TypeVar, TypedDict, cast
1818

1919
import worker
20-
from interpreter import OpenInterpreter
2120

2221

2322
logger = logging.getLogger(__name__)
@@ -79,7 +78,6 @@ class DockerBenchmarkRunner(BenchmarkRunner):
7978

8079
def run(self, command: OpenInterpreterCommand, prompt: str, display: bool) -> List[LMC]:
8180
with tempfile.TemporaryDirectory() as temp_dir:
82-
# with self.temp_docker_volume() as volume_name:
8381
command_json_str = json.dumps(command)
8482
dcmd = [
8583
"docker", "run", "-t",
@@ -93,13 +91,6 @@ def run(self, command: OpenInterpreterCommand, prompt: str, display: bool) -> Li
9391
messages = json.load(f)
9492
return messages
9593

96-
@contextmanager
97-
def temp_docker_volume(self):
98-
result = subprocess.run(["docker", "volume", "create"], stdout=subprocess.PIPE, text=True)
99-
volume_name = result.stdout.strip()
100-
yield volume_name
101-
subprocess.run(["docker", "volume", "rm", volume_name], stdout=subprocess.DEVNULL)
102-
10394

10495
def run_benchmark(benchmark: Benchmark, command: OpenInterpreterCommand, display: bool = False) -> List[TaskResult]:
10596
all_tasks = benchmark.get_tasks()

0 commit comments

Comments
 (0)