laubonghaudoi commited on
Commit
4f4edca
·
1 Parent(s): 0e008e1

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +62 -10
requirements.txt CHANGED
@@ -1,22 +1,74 @@
1
  # Core dependencies for Cantonese TTS HF Space
 
 
 
2
  spaces>=0.19.0
3
  torch>=2.0.0
4
  torchaudio
5
- gradio>=4.0.0,<5.0.0
6
- numpy<2.0
7
- scipy
 
8
  librosa==0.10.2
9
  soundfile
 
 
 
 
 
 
 
 
 
10
  transformers>=4.43,<=4.50
 
 
11
  jieba
 
12
  pypinyin
 
13
  ToJyutping
14
  opencc
15
- cn2an
16
- numba
17
- python-ffmpeg
18
- # For GPU optimization
19
- accelerate
20
- # Model handling
 
 
 
 
21
  safetensors
22
- huggingface_hub
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Core dependencies for Cantonese TTS HF Space
2
+ # Based on original GPT-SoVITS requirements.txt
3
+
4
+ # Core ML frameworks
5
  spaces>=0.19.0
6
  torch>=2.0.0
7
  torchaudio
8
+ pytorch-lightning>=2.4
9
+ gradio<5
10
+
11
+ # Audio processing
12
  librosa==0.10.2
13
  soundfile
14
+ ffmpeg-python
15
+ numba
16
+ scipy
17
+ av>=11
18
+
19
+ # Array processing
20
+ numpy<2.0
21
+
22
+ # NLP and text processing
23
  transformers>=4.43,<=4.50
24
+ sentencepiece
25
+ tokenizers>=0.13,<1
26
  jieba
27
+ jieba_fast
28
  pypinyin
29
+ cn2an
30
  ToJyutping
31
  opencc
32
+ g2pk2
33
+ ko_pron
34
+ split-lang
35
+ fast_langdetect>=0.3.1
36
+ wordsegment
37
+ g2p_en
38
+ pyopenjtalk>=0.4.1
39
+
40
+ # Model related
41
+ peft
42
  safetensors
43
+ huggingface_hub>=0.13
44
+ modelscope==1.10.0
45
+ funasr==1.0.27
46
+
47
+ # Additional ML tools
48
+ rotary_embedding_torch
49
+ x_transformers
50
+ torchmetrics<=1.5
51
+ tensorboard
52
+
53
+ # Runtime optimization
54
+ onnxruntime-gpu; platform_machine == "x86_64" or platform_machine == "AMD64"
55
+ onnxruntime; platform_machine == "aarch64" or platform_machine == "arm64"
56
+
57
+ # Web framework
58
+ fastapi[standard]>=0.115.2
59
+ pydantic<=2.10.6
60
+
61
+ # Utilities
62
+ tqdm
63
+ psutil
64
+ chardet
65
+ PyYAML
66
+
67
+ # Platform specific
68
+ python_mecab_ko; sys_platform != 'win32'
69
+
70
+ # Additional that might be needed
71
+ accelerate
72
+ ctranslate2>=4.0,<5
73
+
74
+ # Note: --no-binary=opencc might be needed for opencc