File size: 965 Bytes
bf62248
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[tool.poetry]
name = "copaint"
version = "1.0.0"
description = "A backend to go from Image to copaint PDF, using torch and Pillow."
authors = ["Thibault Groueix <thibault.groueix.2012@polytechnique,org>"]
license = "All rights reserved"
readme = "README.md"
include = [
  "copaint/static/*"
]

[tool.poetry.dependencies]
# pip install torch torchvision reportlab PyPDF2 Pillow argparse 
python = ">=3.10,<4.0"
Pillow = "^10.0.0"
torch = "^2.0.0"  # If you're using PyTorch
click = "^8.0.0"  # For the CLI
torchvision = "^0.20.1"  # If you're using PyTorch
reportlab = "^3.6.0"  # For PDF generation
PyPDF2 = "^1.26.0"  # For PDF generation
argparse = "^1.4.0"  # For the CLI
matplotlib = "^3.9.2"

[tool.poetry.scripts]
copaint = "copaint.cli:main"
copaint-app = "app:main"  # Launch Gradio UI

[tool.poetry.group.ui.dependencies]
gradio = "^5.23.3"
gradio-pdf = "^0.0.22"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"