PratikGautam commited on
Commit
bfe5f9a
·
verified ·
1 Parent(s): 805db4c

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from huggingface_hub import InferenceClient
3
+
4
+ client = InferenceClient(
5
+ provider="hf-inference",
6
+ api_key=os.environ["HF_TOKEN"],
7
+ )
8
+
9
+ output = client.automatic_speech_recognition("sample1.flac", model="openai/whisper-large-v3")