osanseviero commited on
Commit
a7d0893
1 Parent(s): b9e36f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -11,7 +11,8 @@ subprocess.check_call([sys.executable, "-m", "pip", "install", "entmax"])
11
  from tortoise_tts.api import TextToSpeech
12
  from tortoise_tts.utils.audio import load_audio, get_voices
13
 
14
- # This will download all the models used by Tortoise from the HF hub.
 
15
  tts = TextToSpeech("cpu")
16
 
17
  voices = [
 
11
  from tortoise_tts.api import TextToSpeech
12
  from tortoise_tts.utils.audio import load_audio, get_voices
13
 
14
+ # This will download all the models used by Tortoise from the HF hub
15
+ device = "cuda" if torch.cuda.is_available() else "cpu"
16
  tts = TextToSpeech("cpu")
17
 
18
  voices = [