File size: 1,533 Bytes
8a7f2d6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[project]
name = "granite-vision-demos"
version = "0.1.0"
description = "A collection of gradio demos for granite vision models."
authors = [{name = "Hendrik Strobelt", email = "hendrik.strobelt@ibm.com"}]
requires-python = ">=3.10,<3.11"
readme = "README.md"
license = "Apache-2.0"
classifiers = [
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.10",
]
dependencies = [
    "gradio[oauth]==5.16.1",
    "torch==2.11.0",
    "spaces>=0.50.0",
    "transformers>=4.52.1",
    "accelerate>=1.2.1",
    "langchain-milvus>=0.1.8",
    "langchain-core>=0.3.36",
    "langchain-huggingface>=0.1.2",
    "gradio-pdf>=0.0.22",
    "sentence-transformers>=3.0.0",
    "milvus-lite>=2.4.0",
    "markupsafe==2.1.5",
    "pillow<12.0",
    "pydantic==2.10.6",
]

[dependency-groups]
dev = [
    "pre-commit>=4.0.1",
    "git-lint>=0.1.2",
    "ruff>=0.8.3",
    "pytest>=8.3.4",
]

[build-system]
requires = ["uv_build>=0.11.7,<0.12.0"]
build-backend = "uv_build"

[tool.uv]
package = false
default-groups = "all"

[tool.ruff]
select = [
    "E",    # pycodestyle
    "F",    # pyflakes
    "UP",   # pyupgrade
    "D",    # pydocstyle
    "I",    # isort
    "B",    # bugbear
    "ANN",  # annotations
    "N",    # pep8-naming
    "C4",   # Comprehensions
    "DTZ",  # DatetimeZ
    "Q",    # Quotes
    "SIM",  # Simplify
    "RUF",  # Ruff
]
ignore = ["D203", "D213"]
fixable = ["ALL"]
unfixable = []
line-length = 120

[tool.black]
line-length = 120

[tool.ruff.lint.pydocstyle]
convention = "google"