osanseviero commited on
Commit
9630f4e
1 Parent(s): 9dffe2c

Update app.py

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