Dmtlant commited on
Commit
d6b02ad
·
verified ·
1 Parent(s): 0fef32f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from io import BytesIO
4
  import base64
5
 
6
  API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large-v3-turbo"
7
- headers = {"Authorization": f"Bearer {st.secrets['hf_token']}"}
8
 
9
  def query(audio_bytes):
10
  response = requests.post(API_URL, headers=headers, data=audio_bytes)
 
4
  import base64
5
 
6
  API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large-v3-turbo"
7
+ headers = {"Authorization": f"Bearer {st.secrets['HF_API_KEY']}"}
8
 
9
  def query(audio_bytes):
10
  response = requests.post(API_URL, headers=headers, data=audio_bytes)