function for prompt template:
def format_instruction(sample):
return f"""### Instruction:
Write a summary of the following text.
### Input:
{sample['chapter']}
### Response:
{sample['summary_text']}
"""
def format_instruction(sample):
return f"""### Instruction:
Write a summary of the following text.
### Input:
{sample['chapter']}
### Response:
{sample['summary_text']}
"""