File size: 967 Bytes
7255581
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[build-system]
requires = ["hatchling>=1.21.1"]
build-backend = "hatchling.build"

[project]
name = "image-captioning-app"
version = "0.1.0"
description = "A deployable Gradio app for image captioning using Hugging Face Transformers"
authors = [{ name = "Noah" }]
readme = "README.md"
requires-python = ">=3.10"
keywords = ["image", "captioning", "gradio", "transformers", "pillow"]
license = { text = "MIT" }

# NOTE: Torch wheels are large; this pins CPU-friendly defaults.
# Adjust versions as needed for your environment.
dependencies = [
  "gradio>=4.44.0",
  "transformers>=4.43.0",
  "pillow>=10.3.0",
  "safetensors>=0.4.3",
  "accelerate>=0.33.0",
  "torch>=2.3.0; platform_system != 'Darwin' or platform_machine != 'arm64'",
]

[project.urls]
Homepage = "https://example.com"

[project.scripts]
image-caption = "image_captioning_app.app:main"

[tool.hatch.build]
packages = ["src/image_captioning_app"]

[tool.hatch.metadata]
allow-direct-references = true