Spaces:
Sleeping
Sleeping
Rasmus Lellep
commited on
Commit
·
9239e25
1
Parent(s):
3ae8690
unidic and ffmpeg
Browse files- app.py +3 -2
- ffmpeg.zip +3 -0
- packages.txt +1 -0
app.py
CHANGED
@@ -8,6 +8,9 @@ import time
|
|
8 |
import torch
|
9 |
import torchaudio
|
10 |
|
|
|
|
|
|
|
11 |
# By using XTTS you agree to CPML license https://coqui.ai/cpml
|
12 |
os.environ["COQUI_TOS_AGREED"] = "1"
|
13 |
|
@@ -36,7 +39,6 @@ from huggingface_hub import HfApi, hf_hub_download
|
|
36 |
api = HfApi(token=HF_TOKEN)
|
37 |
repo_id = "tartuNLP/XTTS-v2-est"
|
38 |
|
39 |
-
'''
|
40 |
# Use never ffmpeg binary for Ubuntu20 to use denoising for microphone input
|
41 |
print("Export newer ffmpeg binary for denoise filter")
|
42 |
|
@@ -44,7 +46,6 @@ ZipFile("ffmpeg.zip").extractall()
|
|
44 |
print("Make ffmpeg binary executable")
|
45 |
st = os.stat("ffmpeg")
|
46 |
os.chmod("ffmpeg", st.st_mode | stat.S_IEXEC)
|
47 |
-
'''
|
48 |
|
49 |
# This will trigger downloading model
|
50 |
print("Downloading Coqui XTTS V2")
|
|
|
8 |
import torch
|
9 |
import torchaudio
|
10 |
|
11 |
+
#download for mecab
|
12 |
+
os.system('python -m unidic download')
|
13 |
+
|
14 |
# By using XTTS you agree to CPML license https://coqui.ai/cpml
|
15 |
os.environ["COQUI_TOS_AGREED"] = "1"
|
16 |
|
|
|
39 |
api = HfApi(token=HF_TOKEN)
|
40 |
repo_id = "tartuNLP/XTTS-v2-est"
|
41 |
|
|
|
42 |
# Use never ffmpeg binary for Ubuntu20 to use denoising for microphone input
|
43 |
print("Export newer ffmpeg binary for denoise filter")
|
44 |
|
|
|
46 |
print("Make ffmpeg binary executable")
|
47 |
st = os.stat("ffmpeg")
|
48 |
os.chmod("ffmpeg", st.st_mode | stat.S_IEXEC)
|
|
|
49 |
|
50 |
# This will trigger downloading model
|
51 |
print("Downloading Coqui XTTS V2")
|
ffmpeg.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8d7917c1cebd7a29e68c0a0a6cc4ecc3fe05c7fffed958636c7018b319afdda4
|
3 |
+
size 25458015
|
packages.txt
CHANGED
@@ -1 +1,2 @@
|
|
|
|
1 |
ffmpeg
|
|
|
1 |
+
unzip
|
2 |
ffmpeg
|