Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from tempfile import NamedTemporaryFile
|
|
6 |
|
7 |
# Get API token from environment variable
|
8 |
API_TOKEN = os.environ.get("HF_API_TOKEN") # Use your token here
|
9 |
-
API_URL = "https://api-inference.huggingface.co/models/
|
10 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
11 |
|
12 |
def query(audio_input):
|
|
|
6 |
|
7 |
# Get API token from environment variable
|
8 |
API_TOKEN = os.environ.get("HF_API_TOKEN") # Use your token here
|
9 |
+
API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large"
|
10 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
11 |
|
12 |
def query(audio_input):
|