helloai0 commited on
Commit
7fe2beb
1 Parent(s): d06f414

Update metric.py

Browse files
Files changed (1) hide show
  1. metric.py +4 -2
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
- print('output', output)
70
  answer = output['pred']
71
  label = str(targets.iloc[row]['pred'])
72
- print('answer', answer)
 
 
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