osanseviero commited on
Commit
d59ee2f
1 Parent(s): 8bdd850

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -8,16 +8,11 @@ import IPython
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
- sys.path.append("tortoise-tts/data")
15
-
16
  # entmax could not be installed at same time as torch
17
  subprocess.check_call([sys.executable, "-m", "pip", "install", "entmax"])
18
 
19
- from api import TextToSpeech
20
- from utils.audio import load_audio, get_voices
21
 
22
  for root, dirnames, filenames in os.walk('tortoise-tts'):
23
  print(root, dirnames, filenames)
 
8
  import os
9
  import subprocess
10
 
 
 
 
 
 
11
  # entmax could not be installed at same time as torch
12
  subprocess.check_call([sys.executable, "-m", "pip", "install", "entmax"])
13
 
14
+ from tortoise_tts.api import TextToSpeech
15
+ from tortoise_tts.utils.audio import load_audio, get_voices
16
 
17
  for root, dirnames, filenames in os.walk('tortoise-tts'):
18
  print(root, dirnames, filenames)