Skip to content

Commit 14633ba

Browse files
committed
fix(deps): Add transformers[vision] for AutoModelForImageTextToText
Problem: Backend crashes with ModuleNotFoundError: AutoModelForImageTextToText Solution: Changed transformers (>=4.46.0) to transformers[vision] (>=4.46.0) to include vision-text model dependencies required by Docling's CodeFormulaModel
1 parent aa37734 commit 14633ba

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

poetry.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dependencies = [
4545
"validators>=0.34.0",
4646
"psutil (>=7.0.0,<8.0.0)",
4747
"docling (>=2.0.0)",
48-
"transformers (>=4.46.0)",
48+
"transformers[vision] (>=4.46.0)",
4949
"pydub (>=0.25.1,<0.26.0)",
5050
"uuid-extension (>=0.2.0,<0.3.0)",
5151
"spacy (>=3.7.0,<4.0.0)",

0 commit comments

Comments
 (0)