mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +00:00
Remove sub-dependencies from setup.py. Upgrade sentence-transformer
- 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
This commit is contained in:
7
setup.py
7
setup.py
@@ -23,13 +23,9 @@ setup(
|
|||||||
include=["src*"]
|
include=["src*"]
|
||||||
),
|
),
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"numpy == 1.22.4",
|
|
||||||
"torch == 1.13.1",
|
"torch == 1.13.1",
|
||||||
"torchvision == 0.14.1",
|
"sentence-transformers == 2.2.2",
|
||||||
"transformers == 4.21.0",
|
|
||||||
"sentence-transformers == 2.1.0",
|
|
||||||
"openai == 0.20.0",
|
"openai == 0.20.0",
|
||||||
"huggingface_hub == 0.8.1",
|
|
||||||
"pydantic == 1.9.1",
|
"pydantic == 1.9.1",
|
||||||
"fastapi == 0.77.1",
|
"fastapi == 0.77.1",
|
||||||
"uvicorn == 0.17.6",
|
"uvicorn == 0.17.6",
|
||||||
@@ -37,7 +33,6 @@ setup(
|
|||||||
"pyyaml == 6.0",
|
"pyyaml == 6.0",
|
||||||
"pytest == 7.1.2",
|
"pytest == 7.1.2",
|
||||||
"pillow == 9.3.0",
|
"pillow == 9.3.0",
|
||||||
"aiofiles == 0.8.0",
|
|
||||||
"dateparser == 1.1.1",
|
"dateparser == 1.1.1",
|
||||||
"pyqt6 == 6.3.1",
|
"pyqt6 == 6.3.1",
|
||||||
"defusedxml == 0.7.1",
|
"defusedxml == 0.7.1",
|
||||||
|
|||||||
Reference in New Issue
Block a user