Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,7 @@ from TTS.tts.configs.xtts_config import XttsConfig
|
|
| 6 |
from TTS.tts.models.xtts import Xtts
|
| 7 |
from huggingface_hub import hf_hub_download
|
| 8 |
import scipy.io.wavfile
|
|
|
|
| 9 |
|
| 10 |
# Set the cache directory for Hugging Face models to ensure they are saved within the Space
|
| 11 |
os.environ['HUGGINGFACE_HUB_CACHE'] = '/app/.cache/huggingface/hub'
|
|
|
|
| 6 |
from TTS.tts.models.xtts import Xtts
|
| 7 |
from huggingface_hub import hf_hub_download
|
| 8 |
import scipy.io.wavfile
|
| 9 |
+
import soundfile as sf
|
| 10 |
|
| 11 |
# Set the cache directory for Hugging Face models to ensure they are saved within the Space
|
| 12 |
os.environ['HUGGINGFACE_HUB_CACHE'] = '/app/.cache/huggingface/hub'
|