"tests/pipelines/controlnet_xs/test_controlnetxs_sdxl.py" did not exist on "18b018c86408d4f64deb1d5d4c30a6a12768f2eb"
Commit e3c2e692 authored by Anish Thite's avatar Anish Thite
Browse files

add include target for coqa

parent 7c55e46b
......@@ -41,7 +41,10 @@ class CoQA(Dataset):
for pair in zip(doc['questions'], doc['answers']):
text.append('\n\n')
text.append(''.join(['Q: ',pair[0]['input_text'], '\n\n']))
text.append(''.join(['A: ',pair[1]['input_text']]))
if include_target:
text.append(''.join(['A: ',pair[1]['input_text']]))
else:
text.append('A: ')
return ''.join(text)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment