fix
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ def greet(file):
|
|
8 |
API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large-v3-turbo"
|
9 |
headers = {"Authorization": "Bearer hf_api_key"}
|
10 |
|
11 |
-
def query(
|
12 |
-
with open(
|
13 |
data = f.read()
|
14 |
response = requests.post(API_URL, headers=headers, data=data)
|
15 |
return response.json()
|
|
|
8 |
API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large-v3-turbo"
|
9 |
headers = {"Authorization": "Bearer hf_api_key"}
|
10 |
|
11 |
+
def query(file):
|
12 |
+
with open(file, "rb") as f:
|
13 |
data = f.read()
|
14 |
response = requests.post(API_URL, headers=headers, data=data)
|
15 |
return response.json()
|