Spaces:
Running
Running
[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" | |