Update app.py
Browse files
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['
|
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)
|