Download code/notebooks/_m1_show.py from viai957/align: direct link, hf CLI and curl.
- Browser
- Download file 163 Bytes
-
https://huggingface.co/viai957/align/resolve/main/code/notebooks/_m1_show.py
- Command line
-
hf download hf://viai957/align/code/notebooks/_m1_show.py
-
curl -L -o _m1_show.py https://huggingface.co/viai957/align/resolve/main/code/notebooks/_m1_show.py
163 Bytes
| import json,sys | |
| nb=json.load(open(sys.argv[1])) | |
| for c in nb['cells']: | |
| for o in c.get('outputs',[]): print(''.join(o.get('text',o.get('traceback',''))),end='') | |