chenxie95 commited on
Commit
a2ba6ce
·
verified ·
1 Parent(s): c22768e

Fix Hugging Face Space build install

Browse files
Files changed (3) hide show
  1. README.md +1 -0
  2. app.py +7 -0
  3. requirements.txt +22 -1
README.md CHANGED
@@ -5,6 +5,7 @@ colorFrom: blue
5
  colorTo: purple
6
  sdk: gradio
7
  sdk_version: 5.39.0
 
8
  app_file: app.py
9
  pinned: true
10
  short_description: Zero-shot TTS with raw waveform generation
 
5
  colorTo: purple
6
  sdk: gradio
7
  sdk_version: 5.39.0
8
+ python_version: 3.10
9
  app_file: app.py
10
  pinned: true
11
  short_description: Zero-shot TTS with raw waveform generation
app.py CHANGED
@@ -1,5 +1,12 @@
 
1
  import tempfile
2
  from importlib.resources import files
 
 
 
 
 
 
3
 
4
  import gradio as gr
5
  import soundfile as sf
 
1
+ import sys
2
  import tempfile
3
  from importlib.resources import files
4
+ from pathlib import Path
5
+
6
+ ROOT_DIR = Path(__file__).resolve().parent
7
+ SRC_DIR = ROOT_DIR / "src"
8
+ if str(SRC_DIR) not in sys.path:
9
+ sys.path.insert(0, str(SRC_DIR))
10
 
11
  import gradio as gr
12
  import soundfile as sf
requirements.txt CHANGED
@@ -1 +1,22 @@
1
- -e .[space]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ accelerate>=0.33.0
2
+ einops>=0.8.2
3
+ ema_pytorch>=0.5.2
4
+ cached_path
5
+ hydra-core>=1.3.2
6
+ huggingface-hub>=0.26.0,<1.0
7
+ librosa
8
+ matplotlib
9
+ numpy<2.0.0
10
+ pydub
11
+ pypinyin
12
+ rjieba
13
+ safetensors
14
+ soundfile>=0.13.1
15
+ torch>=2.0.0
16
+ torchaudio>=2.0.0
17
+ torchdiffeq
18
+ tqdm
19
+ transformers
20
+ transformers-stream-generator
21
+ unidecode
22
+ x-transformers>=1.31.14