veni18 commited on
Commit
e5a6da2
·
1 Parent(s): 1b92c97
Files changed (1) hide show
  1. app.py +2 -2
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(filename):
12
- with open(filename, "rb") as f:
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()