Daporte commited on
Commit
b13e4db
·
verified ·
1 Parent(s): a645265

Upload pyproject.toml with huggingface_hub

Browse files
Files changed (1) hide show
  1. pyproject.toml +60 -0
pyproject.toml ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "prosody_explorer"
3
+ version = "0.1.0"
4
+ description = "Prosody features to mel to text -- the Prosody2text pipeline"
5
+ requires-python = ">=3.10"
6
+ dependencies = [
7
+ # The feature extractor. amfm-decompy is pinned exactly: f0_interp builds
8
+ # a pYAAPT.PitchObj without __init__ and reads class constants off it, so
9
+ # a release that moves those to instance attributes breaks gap
10
+ # interpolation at runtime rather than at import.
11
+ "amfm-decompy==1.0.12.2",
12
+ # Praat's intensity analysis. Wheels exist for Linux, macOS and Windows.
13
+ "praat-parselmouth>=0.4.7",
14
+ "numpy>=1.26",
15
+ "scipy>=1.11",
16
+ # The conformer is the trained torch module, loaded from safetensors.
17
+ "torch>=2.8",
18
+ "safetensors>=0.4",
19
+ # transformers is pinned to the 5.x line the reference was measured
20
+ # against: the beam capture monkeypatches GenerationMixin.generate, so a
21
+ # major version is a real compatibility boundary.
22
+ "transformers>=5.20,<6",
23
+ "tokenizers>=0.23,<0.24",
24
+ "huggingface-hub>=0.25",
25
+ # Reading an audio file by path. Ships its own libsndfile, so unlike
26
+ # torchcodec it needs no system codec.
27
+ "soundfile>=0.12",
28
+ ]
29
+
30
+ [project.optional-dependencies]
31
+ # Only for evaluate_dataset.py. Kept out of the base install because
32
+ # `datasets` pulls a large tree the pipeline itself never touches.
33
+ #
34
+ # soundfile rather than torchcodec, deliberately: datasets 5.x decodes audio
35
+ # through torchcodec, which dlopens system FFmpeg libraries and so fails
36
+ # with "libavutil.so not found" on a machine that has only wheels. The
37
+ # script asks datasets for undecoded bytes and reads them with soundfile,
38
+ # which ships its own libsndfile.
39
+ eval = [
40
+ "datasets>=3.0",
41
+ "jiwer>=4.0.0",
42
+ "soundfile>=0.12",
43
+ ]
44
+
45
+ [build-system]
46
+ requires = ["hatchling"]
47
+ build-backend = "hatchling.build"
48
+
49
+ # The modeling files sit at the repo root, which is the Hub's own convention
50
+ # for a custom architecture. Mapping them into a package here lets the same
51
+ # files be imported normally by anything that installs this -- so the Space
52
+ # can `from prosody_explorer.features import ...` at module level rather
53
+ # than reaching into the revision-hashed path trust_remote_code creates.
54
+ [tool.hatch.build.targets.wheel]
55
+ only-include = [
56
+ "features.py", "f0_interp.py", "_yaapt_patch.py",
57
+ "speech.py", "conformer.py", "conformer_model.py",
58
+ "whisper_decoder.py", "configuration_prosody.py", "modeling_prosody.py",
59
+ ]
60
+ sources = { "" = "prosody_explorer" }