Update app.py
Browse files
app.py
CHANGED
|
@@ -158,7 +158,7 @@ def add_new_eval(
|
|
| 158 |
for indx, intervention_id in enumerate(gold_dataset['intervention_id']):
|
| 159 |
if id_to_eval == intervention_id:
|
| 160 |
references = gold_dataset['cqs']
|
| 161 |
-
reference_set = [row['cq'] for row in references]
|
| 162 |
for cq in line['cqs']:
|
| 163 |
# TODO: compare to each reference and get a value
|
| 164 |
cq_text = cq['cq']
|
|
|
|
| 158 |
for indx, intervention_id in enumerate(gold_dataset['intervention_id']):
|
| 159 |
if id_to_eval == intervention_id:
|
| 160 |
references = gold_dataset['cqs']
|
| 161 |
+
reference_set = [row['cq'] for row in references[indx]]
|
| 162 |
for cq in line['cqs']:
|
| 163 |
# TODO: compare to each reference and get a value
|
| 164 |
cq_text = cq['cq']
|