BredForCompanionship
commited on
Update metric.py
Browse files
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",
|