Skip to content

Commit 1f5ec91

Browse files
authored
Fix GenAIExamples opea-project#1607 by adding timeout to the wav2lip request (opea-project#1540)
Signed-off-by: Chun Tao <chun.tao@intel.com>
1 parent 97d0ec5 commit 1f5ec91

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

comps/animation/src/integrations/wav2lip.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ async def invoke(self, input: str):
3131
"""
3232
inputs = {"audio": input}
3333

34-
async with aiohttp.ClientSession() as session:
34+
timeout = aiohttp.ClientTimeout(total=600) # Set timeout to 600 seconds
35+
async with aiohttp.ClientSession(timeout=timeout) as session:
3536
response = await session.post(url=f"{self.base_url}/v1/wav2lip", data=json.dumps(inputs), proxy=None)
3637
json_data = await response.json()
3738
outfile = json_data["wav2lip_result"]

0 commit comments

Comments
 (0)