Update TextGen/coqui.py
Browse files- TextGen/coqui.py +1 -4
TextGen/coqui.py
CHANGED
@@ -9,8 +9,7 @@ import torch
|
|
9 |
import torchaudio
|
10 |
import numpy as np
|
11 |
|
12 |
-
|
13 |
-
os.system("pip install git+https://github.com/gradio-app/gradio.git@5.0-dev")
|
14 |
#update gradio to faster streaming
|
15 |
#download for mecab
|
16 |
os.system('python -m unidic download')
|
@@ -27,7 +26,6 @@ from io import StringIO
|
|
27 |
import datetime
|
28 |
import re
|
29 |
|
30 |
-
import gradio as gr
|
31 |
from scipy.io.wavfile import write
|
32 |
from pydub import AudioSegment
|
33 |
|
@@ -39,7 +37,6 @@ from TTS.utils.generic_utils import get_user_data_dir
|
|
39 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
40 |
|
41 |
from huggingface_hub import HfApi
|
42 |
-
os.system("pip install git+https://github.com/gradio-app/gradio.git@5.0-dev")
|
43 |
# will use api to restart space on a unrecoverable error
|
44 |
api = HfApi(token=HF_TOKEN)
|
45 |
repo_id = "coqui/xtts"
|
|
|
9 |
import torchaudio
|
10 |
import numpy as np
|
11 |
|
12 |
+
|
|
|
13 |
#update gradio to faster streaming
|
14 |
#download for mecab
|
15 |
os.system('python -m unidic download')
|
|
|
26 |
import datetime
|
27 |
import re
|
28 |
|
|
|
29 |
from scipy.io.wavfile import write
|
30 |
from pydub import AudioSegment
|
31 |
|
|
|
37 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
38 |
|
39 |
from huggingface_hub import HfApi
|
|
|
40 |
# will use api to restart space on a unrecoverable error
|
41 |
api = HfApi(token=HF_TOKEN)
|
42 |
repo_id = "coqui/xtts"
|