Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import subprocess
|
2 |
|
3 |
# Define the local paths to the packages
|
4 |
-
local_package_paths = [
|
5 |
|
6 |
# Run the pip install command for each local package
|
7 |
for package_path in local_package_paths:
|
@@ -34,7 +34,7 @@ with open("characters.json", "r") as file:
|
|
34 |
for item in data
|
35 |
]
|
36 |
|
37 |
-
from TTS.
|
38 |
tts = TTS("tts_models/multilingual/multi-dataset/bark", gpu=True)
|
39 |
|
40 |
def cut_wav(input_path, max_duration):
|
|
|
1 |
import subprocess
|
2 |
|
3 |
# Define the local paths to the packages
|
4 |
+
local_package_paths = [./transformers"]
|
5 |
|
6 |
# Run the pip install command for each local package
|
7 |
for package_path in local_package_paths:
|
|
|
34 |
for item in data
|
35 |
]
|
36 |
|
37 |
+
from TTS.api import TTS
|
38 |
tts = TTS("tts_models/multilingual/multi-dataset/bark", gpu=True)
|
39 |
|
40 |
def cut_wav(input_path, max_duration):
|