File size: 171 Bytes
6afe180 |
1 2 3 4 5 6 7 8 |
def doc_to_text(doc) -> str:
history = ""
if len(doc['turns']) > 0:
history += f"User: {doc['turns'][0]['utterance']}\n"
history += "System: "
return history
|
6afe180 |
1 2 3 4 5 6 7 8 |
def doc_to_text(doc) -> str:
history = ""
if len(doc['turns']) > 0:
history += f"User: {doc['turns'][0]['utterance']}\n"
history += "System: "
return history
|