Skip to content

Commit

Permalink
fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
rbler1234 committed Dec 16, 2024
1 parent 445c61b commit 8a96384
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions mmscan/evaluator/gpt_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ def __init__(self,
model: str = 'gpt-4o-mini',
show_progress: bool = False):
self.eval_size = eval_size
self.API_key = api_key
self.model = model
self.show_progress = show_progress
self.client = OpenAI(api_key=api_key)
self.client = OpenAI(api_key)
self.qa_metric = [
'STa',
'STs',
Expand Down
2 changes: 1 addition & 1 deletion models/LEO/evaluator/GPT_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
leo_file_path = args.file

evaluator = GPTEvaluator(eval_size =args.eval_size,\
API_key=args.api_key)
api_key=args.api_key)

with open(leo_file_path, 'r') as f:
results = json.load(f)
Expand Down
2 changes: 1 addition & 1 deletion models/LL3DA/eval_utils/evaluate_gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def parse_form(results):
ll3da_file_path = args.file

evaluator = GPTEvaluator(eval_size =args.eval_size,\
API_key=args.api_key)
api_key=args.api_key)

with open(ll3da_file_path, 'r') as f:
results = json.load(f)
Expand Down

0 comments on commit 8a96384

Please sign in to comment.