Skip to content

Commit

Permalink
Remove explicit dependency on uvloop. Doesn't work on Windows and isn…
Browse files Browse the repository at this point in the history
…'t truly needed.
  • Loading branch information
mikeckennedy committed Feb 11, 2024
1 parent b4862f8 commit 492ac0b
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion code/01_feature_transcripts/requirements.piptools
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ passlib
python-multipart
spacy
uvicorn
uvloop
# uvloop # Uncomment on mac/linux, but doesn't support Windows, perf boost only.

# dev dependencies - we can move them later if needed
pytest
Expand Down
2 changes: 0 additions & 2 deletions code/01_feature_transcripts/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ urllib3==2.2.0
# via requests
uvicorn==0.27.1
# via -r requirements.piptools
uvloop==0.19.0
# via -r requirements.piptools
w3lib==2.1.2
# via parsel
wasabi==1.1.2
Expand Down
2 changes: 1 addition & 1 deletion code/02_feature_search/requirements.piptools
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ passlib
python-multipart
spacy
uvicorn
uvloop
# uvloop # Uncomment on mac/linux, but doesn't support Windows, perf boost only.

# dev dependencies - we can move them later if needed
pytest
Expand Down
2 changes: 0 additions & 2 deletions code/02_feature_search/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ urllib3==2.2.0
# via requests
uvicorn==0.27.1
# via -r requirements.piptools
uvloop==0.19.0
# via -r requirements.piptools
w3lib==2.1.2
# via parsel
wasabi==1.1.2
Expand Down
5 changes: 4 additions & 1 deletion code/03_feature_summary/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion code/03_feature_summary/requirements.piptools
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ passlib
python-multipart
spacy
uvicorn
uvloop
# uvloop # Uncomment on mac/linux, but doesn't support Windows, perf boost only.

# dev dependencies - we can move them later if needed
pytest
Expand Down
8 changes: 3 additions & 5 deletions code/03_feature_summary/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,9 +201,7 @@ typing-extensions==4.9.0
# typer
urllib3==2.2.0
# via requests
uvicorn==0.27.0.post1
# via -r requirements.piptools
uvloop==0.19.0
uvicorn==0.27.1
# via -r requirements.piptools
w3lib==2.1.2
# via parsel
Expand Down
2 changes: 1 addition & 1 deletion code/03_feature_summary/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 492ac0b

Please sign in to comment.