Update metric.py
Browse files
metric.py
CHANGED
@@ -66,10 +66,12 @@ def compute(params):
|
|
66 |
# output: score
|
67 |
for row, output in outputs.iterrows():
|
68 |
print('outputs type', type(outputs), 'targets type', type(outputs))
|
69 |
-
|
70 |
answer = output['pred']
|
71 |
label = str(targets.iloc[row]['pred'])
|
72 |
-
|
|
|
|
|
73 |
|
74 |
prompt=f"Give me a score from 1 to 10 (higher is better) judging how similar these two captions are. Caption one: {answer}. Caption two: {label}\nScore:"
|
75 |
|
|
|
66 |
# output: score
|
67 |
for row, output in outputs.iterrows():
|
68 |
print('outputs type', type(outputs), 'targets type', type(outputs))
|
69 |
+
|
70 |
answer = output['pred']
|
71 |
label = str(targets.iloc[row]['pred'])
|
72 |
+
|
73 |
+
print('answer:', answer)
|
74 |
+
print('label:', label)
|
75 |
|
76 |
prompt=f"Give me a score from 1 to 10 (higher is better) judging how similar these two captions are. Caption one: {answer}. Caption two: {label}\nScore:"
|
77 |
|