Download scripts/texts_ids.py from matthiastl/gepard-onnx: direct link, hf CLI and curl.
- Browser
- Download file 276 Bytes
-
https://huggingface.co/matthiastl/gepard-onnx/resolve/main/scripts/texts_ids.py
- Command line
-
hf download hf://matthiastl/gepard-onnx/scripts/texts_ids.py
-
curl -L -o texts_ids.py https://huggingface.co/matthiastl/gepard-onnx/resolve/main/scripts/texts_ids.py
276 Bytes
| import sys, json; from pathlib import Path | |
| sys.path.insert(0, str(Path(__file__).parent)) | |
| import reference as R, texts | |
| Path(__file__).resolve().parents[1].joinpath("data", "ids.json").write_text(json.dumps([R.text_ids(t) for t in texts.TEXTS])) | |
| print("ids", len(texts.TEXTS)) | |