import requests API_URL = "https://api-inference.huggingface.co/models/jkang/espnet2_librispeech_100_conformer_word" headers = {"Authorization": f"Bearer {API_TOKEN}"} def query(filename): with open(filename, "rb") as f: data = f.read() response = requests.post(API_URL, headers=headers, data=data) return response.json() output = query("sample1.flac") 2be0040 Kirkawin commited on Sep 4, 2023
Replace pipeline.py with handler.py (#2) 5d1afa6 philschmid jeffboudier HF staff commited on Oct 1, 2022