Spaces:
Sleeping
Sleeping
John Langley
commited on
Commit
•
13c0603
1
Parent(s):
02ef6e4
change to cpu
Browse files
app.py
CHANGED
@@ -35,8 +35,8 @@ from llama_cpp import Llama
|
|
35 |
from TTS.api import TTS
|
36 |
from TTS.utils.manage import ModelManager
|
37 |
from TTS.tts.configs.xtts_config import XttsConfig
|
38 |
-
|
39 |
-
|
40 |
#from TTS.utils.manage import ModelManager
|
41 |
|
42 |
# Local imports
|
|
|
35 |
from TTS.api import TTS
|
36 |
from TTS.utils.manage import ModelManager
|
37 |
from TTS.tts.configs.xtts_config import XttsConfig
|
38 |
+
from TTS.tts.models.xtts import Xtts
|
39 |
+
from TTS.utils.generic_utils import get_user_data_dir
|
40 |
#from TTS.utils.manage import ModelManager
|
41 |
|
42 |
# Local imports
|
utils.py
CHANGED
@@ -31,7 +31,7 @@ def get_latents(chatbot_voice, xtts_model, voice_cleanup=False):
|
|
31 |
global latent_map
|
32 |
print("here")
|
33 |
if chatbot_voice not in latent_map:
|
34 |
-
print("here1")
|
35 |
speaker_wav = f"examples/{chatbot_voice}.wav"
|
36 |
if (voice_cleanup):
|
37 |
try:
|
|
|
31 |
global latent_map
|
32 |
print("here")
|
33 |
if chatbot_voice not in latent_map:
|
34 |
+
print("here1", chatbot_voice)
|
35 |
speaker_wav = f"examples/{chatbot_voice}.wav"
|
36 |
if (voice_cleanup):
|
37 |
try:
|