michellehbn HF Staff mfuntowicz HF Staff commited on
Commit
a9e6121
·
verified ·
1 Parent(s): bd507ca

update link to endpoint (#1)

Browse files

- update link to endpoint (327eac039445b93c5287d6dc7d0176641c7d2cbf)


Co-authored-by: Morgan Funtowicz <[email protected]>

Files changed (1) hide show
  1. app.py +1 -1
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://douatiz8x2itm3yn.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},
 
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},