Download augmentoolkit/generation_functions/format_qadicts.py from Leon4gr45/agent-0: direct link, hf CLI and curl.
- Browser
- Download file 226 Bytes
-
https://huggingface.co/spaces/Leon4gr45/agent-0/resolve/main/augmentoolkit/generation_functions/format_qadicts.py
- Command line
-
hf download hf://spaces/Leon4gr45/agent-0/augmentoolkit/generation_functions/format_qadicts.py
-
curl -L -o format_qadicts.py https://huggingface.co/spaces/Leon4gr45/agent-0/resolve/main/augmentoolkit/generation_functions/format_qadicts.py
226 Bytes
| def format_qadicts(qadicts): | |
| strlst = [] | |
| for qatuple in qadicts: | |
| strlst.append( | |
| f"""**QUESTION:** | |
| {qatuple['question']} | |
| **ANSWER:** | |
| {qatuple['answer']} | |
| """ | |
| ) | |
| return "\n\n".join(strlst) | |