osanseviero HF staff commited on
Commit
7f6563e
1 Parent(s): 91eda71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -6,10 +6,15 @@ import torch.nn.functional as F
6
  import IPython
7
 
8
  import os
 
 
9
  import sys
10
  os.system("git clone https://github.com/neonbjb/tortoise-tts.git")
11
  sys.path.append("tortoise-tts")
12
 
 
 
 
13
  from api import TextToSpeech
14
  from utils.audio import load_audio, get_voices
15
 
 
6
  import IPython
7
 
8
  import os
9
+ import subprocess
10
+
11
  import sys
12
  os.system("git clone https://github.com/neonbjb/tortoise-tts.git")
13
  sys.path.append("tortoise-tts")
14
 
15
+ # entmax could not be installed at same time as torch
16
+ ubprocess.check_call([sys.executable, "-m", "pip", "install", "entmax"])
17
+
18
  from api import TextToSpeech
19
  from utils.audio import load_audio, get_voices
20