Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
2c9c807
1
Parent(s):
78f4d94
update extension
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ sys.path.append(os.path.abspath(repo_dir))
|
|
16 |
from inference import StyleTTS2
|
17 |
|
18 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
19 |
-
config_path = os.path.join(repo_dir, "Models", "config.
|
20 |
models_path = os.path.join(repo_dir, "Models", "model.pth")
|
21 |
model = StyleTTS2(config_path, models_path).eval().to(device)
|
22 |
voice_path = os.path.join(repo_dir, "reference_audio")
|
|
|
16 |
from inference import StyleTTS2
|
17 |
|
18 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
19 |
+
config_path = os.path.join(repo_dir, "Models", "config.yaml")
|
20 |
models_path = os.path.join(repo_dir, "Models", "model.pth")
|
21 |
model = StyleTTS2(config_path, models_path).eval().to(device)
|
22 |
voice_path = os.path.join(repo_dir, "reference_audio")
|