update link to endpoint

#1
by mfuntowicz HF Staff - opened
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},