Skip to content

Commit

Permalink
Increasing timeout for remote diarization auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jun 28, 2024
1 parent 0bfaeb3 commit 53dc35f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wordcab_transcribe/services/asr_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,8 @@ async def remote_diarization(
if not settings.debug:
headers = {"Content-Type": "application/x-www-form-urlencoded"}
auth_url = f"{url}/api/v1/auth"
async with aiohttp.ClientSession() as session:
diarization_timeout = aiohttp.ClientTimeout(total=60)
async with AsyncLocationTrustedRedirectSession(timeout=diarization_timeout) as session:
async with session.post(
url=auth_url,
data={"username": settings.username, "password": settings.password},
Expand Down

0 comments on commit 53dc35f

Please sign in to comment.