Skip to content

Commit

Permalink
cleanup rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
andreea-popescu-reef committed Dec 18, 2024
1 parent fe539d9 commit 02dfede
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/compute_horde_prompt_solver/run.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
import json
import pathlib
from .prompt_solver import CLISolver, GPULLMProvider, MockLLMProvider, HttpSolver
from .config import parse_arguments


def mock_run(input_file: pathlib.Path, output_dir: pathlib.Path):
with open(input_file, "r") as f:
prompts = [line.strip() for line in f if line.strip()]

output_file = output_dir / f"{input_file.stem}.json"
with open(output_file, "w") as f:
json.dump({prompt: "mock mock mock" for prompt in prompts}, f, indent=2)


def main():
config = parse_arguments()
if not config.mock:
Expand Down

0 comments on commit 02dfede

Please sign in to comment.