Spaces:
Running
on
Zero
Running
on
Zero
Use pocket-tts from PyPI instead of local directory
Browse files- app.py +0 -3
- requirements.txt +2 -8
app.py
CHANGED
|
@@ -14,9 +14,6 @@ from ddgs import DDGS
|
|
| 14 |
import spaces # Import spaces early to enable ZeroGPU support
|
| 15 |
from torch.utils._pytree import tree_map
|
| 16 |
import numpy as np
|
| 17 |
-
|
| 18 |
-
# Add pocket-tts to path for TTS functionality
|
| 19 |
-
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'pocket-tts'))
|
| 20 |
from pocket_tts import TTSModel
|
| 21 |
|
| 22 |
# Global event to signal cancellation from the UI thread to the generation thread
|
|
|
|
| 14 |
import spaces # Import spaces early to enable ZeroGPU support
|
| 15 |
from torch.utils._pytree import tree_map
|
| 16 |
import numpy as np
|
|
|
|
|
|
|
|
|
|
| 17 |
from pocket_tts import TTSModel
|
| 18 |
|
| 19 |
# Global event to signal cancellation from the UI thread to the generation thread
|
requirements.txt
CHANGED
|
@@ -11,11 +11,5 @@ autoawq
|
|
| 11 |
timm
|
| 12 |
compressed-tensors
|
| 13 |
|
| 14 |
-
# pocket-tts
|
| 15 |
-
|
| 16 |
-
pydantic>=2
|
| 17 |
-
beartype>=0.22.5
|
| 18 |
-
safetensors>=0.4.0
|
| 19 |
-
scipy>=1.5.0
|
| 20 |
-
einops>=0.4.0
|
| 21 |
-
huggingface_hub>=0.10
|
|
|
|
| 11 |
timm
|
| 12 |
compressed-tensors
|
| 13 |
|
| 14 |
+
# pocket-tts
|
| 15 |
+
pocket-tts>=1.0.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|