Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
update link to endpoint
#1
by
mfuntowicz
HF Staff
- opened
app.py
CHANGED
@@ -26,7 +26,7 @@ client = AsyncClient(timeout=30)
|
|
26 |
|
27 |
async def transcribe_file(audio: tuple[int, np.ndarray], language: str):
|
28 |
response = await client.post(
|
29 |
-
url="https://
|
30 |
headers={"Authorization": f"Bearer {os.getenv('HF_TOKEN')}"},
|
31 |
files={"file": audio_to_bytes(audio)},
|
32 |
data={"response_format": "text", "language": language},
|
|
|
26 |
|
27 |
async def transcribe_file(audio: tuple[int, np.ndarray], language: str):
|
28 |
response = await client.post(
|
29 |
+
url="https://cw18rfhfqf3db1m8.us-east-1.aws.endpoints.huggingface.cloud/api/v1/audio/transcriptions",
|
30 |
headers={"Authorization": f"Bearer {os.getenv('HF_TOKEN')}"},
|
31 |
files={"file": audio_to_bytes(audio)},
|
32 |
data={"response_format": "text", "language": language},
|