Update main.py
Browse files194 unmodified lines195196197198199200201202203204194 unmodified lines# semaphore = asyncio.Semaphore(1)async def send_video_for_transcription(file: UploadFile, hash_path: str):# async with semaphore:try:logger.info(f"Background task: sending video {file.filename} for transcription")run_time = api.get_space_runtime(repo_id=repo_id)194 unmodified lines195196197198199200201202203204194 unmodified linessemaphore = asyncio.Semaphore(1)async def send_video_for_transcription(file: UploadFile, hash_path: str):async with semaphore:try:logger.info(f"Background task: sending video {file.filename} for transcription")run_time = api.get_space_runtime(repo_id=repo_id)
main.py+2-2