File size: 242 Bytes
bfe5f9a
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import os
from huggingface_hub import InferenceClient

client = InferenceClient(
    provider="hf-inference",
    api_key=os.environ["HF_TOKEN"],
)

output = client.automatic_speech_recognition("sample1.flac", model="openai/whisper-large-v3")