Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Image encoder issue fixed upstream #895

davidmezzetti642ef2307acf
diff --git a/src/python/txtai/database/encoder/image.py b/src/python/txtai/database/encoder/image.py
index b5066a25..d707b3ae 100644
--- a/src/python/txtai/database/encoder/image.py
+++ b/src/python/txtai/database/encoder/image.py
@@ -32,9 +32,6 @@ class ImageEncoder(Encoder):
# Create byte stream
output = BytesIO()
- # Default filename, if necessary
- obj.filename = obj.filename if hasattr(obj, "filename") else None
-
# Write image to byte stream
obj.save(output, format=obj.format, quality="keep")