BredForCompanionship commited on
Commit
2de620d
·
verified ·
1 Parent(s): f3e3002

Update metric.py

Browse files
Files changed (1) hide show
  1. metric.py +1 -2
metric.py CHANGED
@@ -29,8 +29,7 @@ def compute(params):
29
  submitted_answer = str(submission_df.iloc[0]['pred'])
30
  gt = str(solution_df.iloc[0]['pred'])
31
 
32
- prompt=f"Give me a score from 1 to 10 (higher is better) judging how similar these two captions are. Caption one: {submitted_answer}. Caption two:
33
- {gt}\nScore:"
34
 
35
  response = openai.Completion.create(
36
  engine="text-davinci-003",
 
29
  submitted_answer = str(submission_df.iloc[0]['pred'])
30
  gt = str(solution_df.iloc[0]['pred'])
31
 
32
+ prompt=f"Give me a score from 1 to 10 (higher is better) judging how similar these two captions are. Caption one: {submitted_answer}. Caption two: {gt}\nScore:"
 
33
 
34
  response = openai.Completion.create(
35
  engine="text-davinci-003",