mirror of
https://github.com/aljazceru/nostrdvm.git
synced 2025-12-24 09:24:21 +01:00
better handling of dvms venvs (again with live feedback)
This commit is contained in:
@@ -106,9 +106,11 @@ class TextToSpeech(DVMTaskInterface):
|
||||
from TTS.api import TTS
|
||||
options = self.set_options(request_form)
|
||||
device = "cuda" if torch.cuda.is_available() else "cpu"
|
||||
# else "mps" if torch.backends.mps.is_available() \
|
||||
#else "mps" if torch.backends.mps.is_available()
|
||||
print(device)
|
||||
|
||||
print(TTS().list_models().list_tts_models())
|
||||
|
||||
print(TTS().list_models())
|
||||
try:
|
||||
# model = "tts_models/deu/fairseq/vits"
|
||||
# model = "tts_models/multilingual/multi-dataset/your_tts"
|
||||
|
||||
Reference in New Issue
Block a user