Download inference.py from KishaanG/audact: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/KishaanG/audact/resolve/main/inference.py
- Command line
-
hf download hf://KishaanG/audact/inference.py
-
curl -L -o inference.py https://huggingface.co/KishaanG/audact/resolve/main/inference.py
257 Bytes
| """Example: python inference.py clip.wav tools.json (16 kHz mono audio; a JSON list of tools).""" | |
| import json | |
| import sys | |
| from audact import Audact | |
| caller = Audact.from_pretrained(".") | |
| print(json.dumps(caller(sys.argv[1], json.load(open(sys.argv[2]))))) | |