Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Fix build dependency errors

davidmezzetti39d54a1d6321
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 96ed12d1..2a054ed9 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -13,6 +13,6 @@ jobs:
python-version: 3.7
- run: |
pip install -U pip wheel
- pip install mkdocs-material mkdocstrings .[all]
+ pip install mkdocs-material mkdocstrings mkdocs-autorefs==0.3.1 .[all]
- run: mkdocs gh-deploy --force
\ No newline at end of file
diff --git a/setup.py b/setup.py
index ca48f8dd..0e3795e0 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ extras["api"] = [
extras["cloud"] = ["apache-libcloud>=3.3.1"]
-extras["database"] = ["pillow>=7.2.0"]
+extras["database"] = ["pillow>=9.0.1"]
extras["model"] = ["onnxruntime>=1.8.1"]
@@ -34,7 +34,7 @@ extras["pipeline"] = [
"onnxmltools>=1.9.1",
"onnxruntime>=1.8.1",
"pandas>=1.1.0",
- "pillow>=7.2.0",
+ "pillow>=9.0.1",
"sentencepiece>=0.1.91",
"soundfile>=0.10.3.post1",
"tika>=1.24",
@@ -55,7 +55,7 @@ extras["workflow"] = [
"croniter>=1.2.0",
"openpyxl>=3.0.9",
"pandas>=1.1.0",
- "pillow>=7.2.0",
+ "pillow>=9.0.1",
"requests>=2.26.0",
"xmltodict>=0.12.0",
]
diff --git a/test/python/testpipeline/testimagehash.py b/test/python/testpipeline/testimagehash.py
index 5e69a40e..2f07f973 100644
--- a/test/python/testpipeline/testimagehash.py
+++ b/test/python/testpipeline/testimagehash.py
@@ -12,7 +12,7 @@ from txtai.pipeline import ImageHash
from utils import Utils
-class TestCaption(unittest.TestCase):
+class TestImageHash(unittest.TestCase):
"""
Caption tests.
"""
@@ -39,7 +39,7 @@ class TestCaption(unittest.TestCase):
"""
ihash = ImageHash("average")
- self.assertEqual(ihash(self.image), "0859dd04bfbfbf00")
+ self.assertEqual(ihash(self.image), "0859dd04ffbfbf00")
def testColor(self):
"""
@@ -47,7 +47,7 @@ class TestCaption(unittest.TestCase):
"""
ihash = ImageHash("color")
- self.assertEqual(ihash(self.image), "1ffffe02000e000c0e0000070000")
+ self.assertEqual(ihash(self.image), "1ff8fe03000e00070e0000070000")
def testDifference(self):
"""