Skip to content

Commit

Permalink
Merge pull request #105 from alan-turing-institute/check-experiment-fix
Browse files Browse the repository at this point in the history
Check experiment fix
  • Loading branch information
rchan26 authored Oct 15, 2024
2 parents af16d2f + 1ee2a19 commit 2a9ee06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/prompto/judge.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,8 @@ def create_judge_inputs(self, judge: list[str] | str) -> list[dict]:
INPUT_PROMPT=response["prompt"],
OUTPUT_RESPONSE=response["response"],
),
"api": self.judge_settings[j]["api"],
"model_name": self.judge_settings[j]["model_name"],
"parameters": self.judge_settings[j]["parameters"],
}
| self.judge_settings[j]
| {f"input-{k}": v for k, v in response.items()}
for response in tqdm(
self.completed_responses,
Expand Down
2 changes: 1 addition & 1 deletion src/prompto/scripts/check_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def is_valid_jsonl(
data["multimedia"], media_folder
)
issues.extend(multimedia_issues)
multimedia_path_errors.add(path_errors)
multimedia_path_errors.union(path_errors)

if "api" in data:
if data["api"] not in ASYNC_APIS:
Expand Down

0 comments on commit 2a9ee06

Please sign in to comment.