Skip to content

Commit

Permalink
start cleanning
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Nov 1, 2024
1 parent d5c8c0e commit 8219921
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Poc Whisper

This project is a proof of concept to transcribe audio in real-time using a serverless architecture.

## Getting Started

Expand Down
6 changes: 4 additions & 2 deletions production/ia-worker/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ async def transcription_worker():
await asyncio.sleep(0.1)


# Démarrer le worker de transcription en arrière-plan
asyncio.create_task(transcription_worker())
@app.on_event("startup")
async def startup_event():
# Démarrer le worker de transcription en arrière-plan
asyncio.create_task(transcription_worker())


async def transcribe_audio(client_id, chunk_data, chunk_index, app_settings, http_service):
Expand Down

0 comments on commit 8219921

Please sign in to comment.