veni18 commited on
Commit
5cb2533
·
1 Parent(s): 3cd3eca
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline
3
  import requests
4
  import json
5
 
6
- def greet(sentences1):
7
 
8
  API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large-v3-turbo"
9
  headers = {"Authorization": "Bearer hf_api_key"}
@@ -14,7 +14,7 @@ def greet(sentences1):
14
  response = requests.post(API_URL, headers=headers, data=data)
15
  return response.json()
16
 
17
- my_text = query("rawveg7.mp3")
18
 
19
  sentences = my_text["text"].split(".")
20
 
 
3
  import requests
4
  import json
5
 
6
+ def greet(file):
7
 
8
  API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large-v3-turbo"
9
  headers = {"Authorization": "Bearer hf_api_key"}
 
14
  response = requests.post(API_URL, headers=headers, data=data)
15
  return response.json()
16
 
17
+ my_text = query(file)
18
 
19
  sentences = my_text["text"].split(".")
20