Upload folder using huggingface_hub
Browse files- requirement.txt +10 -0
- src/f5_tts/infer/infer_gradio.py +5 -0
requirement.txt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
gradio
|
| 2 |
+
torch
|
| 3 |
+
torchaudio
|
| 4 |
+
librosa
|
| 5 |
+
numpy
|
| 6 |
+
sentencepiece
|
| 7 |
+
transformers
|
| 8 |
+
soundfile
|
| 9 |
+
cached_path
|
| 10 |
+
f5_tts
|
src/f5_tts/infer/infer_gradio.py
CHANGED
|
@@ -1,5 +1,10 @@
|
|
| 1 |
# ruff: noqa: E402
|
| 2 |
# Above allows ruff to ignore E402: module level import not at top of file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
import gc
|
| 5 |
import json
|
|
|
|
| 1 |
# ruff: noqa: E402
|
| 2 |
# Above allows ruff to ignore E402: module level import not at top of file
|
| 3 |
+
import sys
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
# Add the 'src' folder to PYTHONPATH so 'f5_tts' can be imported
|
| 7 |
+
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")))
|
| 8 |
|
| 9 |
import gc
|
| 10 |
import json
|