Skip to content

Commit

Permalink
Remove sub-dependencies from setup.py. Upgrade sentence-transformer
Browse files Browse the repository at this point in the history
- setup.py best practise recommends only specifying core dependencies,
  not dependencies of core dependencies in it

- Latest sentence-transformer (version 2.2.2) correctly installs its
  huggingface_hub dependency. Else application fails to start
  • Loading branch information
debanjum committed Feb 12, 2023
1 parent 3ec41c4 commit c156b3e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,16 @@
include=["src*"]
),
install_requires=[
"numpy == 1.22.4",
"torch == 1.13.1",
"torchvision == 0.14.1",
"transformers == 4.21.0",
"sentence-transformers == 2.1.0",
"sentence-transformers == 2.2.2",
"openai == 0.20.0",
"huggingface_hub == 0.8.1",
"pydantic == 1.9.1",
"fastapi == 0.77.1",
"uvicorn == 0.17.6",
"jinja2 == 3.1.2",
"pyyaml == 6.0",
"pytest == 7.1.2",
"pillow == 9.3.0",
"aiofiles == 0.8.0",
"dateparser == 1.1.1",
"pyqt6 == 6.3.1",
"defusedxml == 0.7.1",
Expand Down

0 comments on commit c156b3e

Please sign in to comment.