mrestrepo commited on
Commit
e937e1b
·
1 Parent(s): 38c83a9

Not gpu tts

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ locale.getpreferredencoding = lambda: "UTF-8"
11
  device = "cuda" if torch.cuda.is_available() else "cpu"
12
 
13
  os.environ["TTS_TOS_AGREE"] = "y"
14
- tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2", gpu=True).to(device)
15
- tts = TTS("xtts_v2.0.2", gpu=True)
16
 
17
 
18
  async def generate_audio(text_input: str, creator: str) -> str:
 
11
  device = "cuda" if torch.cuda.is_available() else "cpu"
12
 
13
  os.environ["TTS_TOS_AGREE"] = "y"
14
+ tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)
15
+ tts = TTS("xtts_v2.0.2")
16
 
17
 
18
  async def generate_audio(text_input: str, creator: str) -> str: