Skip to content

Commit

Permalink
Fix elapsed time output on transcript completion.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeckennedy committed Feb 11, 2024
1 parent d8cddb3 commit b4862f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions code/02_feature_search/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ pymongo==4.6.1
# via motor
pytest==8.0.0
# via -r requirements.piptools
python-multipart==0.0.7
python-multipart==0.0.9
# via -r requirements.piptools
requests==2.31.0
# via
Expand Down Expand Up @@ -186,7 +186,7 @@ thinc==8.2.3
# via spacy
toml==0.10.2
# via beanie
tqdm==4.66.1
tqdm==4.66.2
# via spacy
typer==0.9.0
# via
Expand All @@ -201,7 +201,7 @@ typing-extensions==4.9.0
# typer
urllib3==2.2.0
# via requests
uvicorn==0.27.0.post1
uvicorn==0.27.1
# via -r requirements.piptools
uvloop==0.19.0
# via -r requirements.piptools
Expand Down
2 changes: 1 addition & 1 deletion code/02_feature_search/src/services/ai_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async def worker_transcribe_episode(podcast_id: str, episode_number: int) -> Epi
await db_transcript.save()

dt = datetime.datetime.now() - t0
print(f'Processing complete for transcription, dt = {dt.total_seconds():,.2} sec.')
print(f'Processing complete for transcription, dt = {dt.total_seconds():,.0f} sec.')

return db_transcript

Expand Down

0 comments on commit b4862f8

Please sign in to comment.