Nông Văn Thắng
commited on
Commit
•
4df7d0b
1
Parent(s):
4b7eff8
main
Browse files- Dockerfile +0 -10
- app.py +8 -8
Dockerfile
CHANGED
@@ -35,17 +35,7 @@ RUN apt-get -y install git \
|
|
35 |
|
36 |
RUN python -m venv .env && \
|
37 |
. .env/bin/activate && \
|
38 |
-
git submodule update --init --recursive && \
|
39 |
-
cd TTS && \
|
40 |
-
git fetch --tags && \
|
41 |
-
git checkout 0.1.1 && \
|
42 |
-
echo "Installing TTS..." && \
|
43 |
-
pip install --use-deprecated=legacy-resolver -e . -q && \
|
44 |
-
cd .. && \
|
45 |
-
echo "Installing other requirements..." && \
|
46 |
pip install -r requirements.txt -q && \
|
47 |
-
echo "Downloading Japanese/Chinese tokenizer..." && \
|
48 |
-
python -m unidic download && \
|
49 |
pip install --upgrade gradio && \
|
50 |
touch .env/ok
|
51 |
|
|
|
35 |
|
36 |
RUN python -m venv .env && \
|
37 |
. .env/bin/activate && \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
pip install -r requirements.txt -q && \
|
|
|
|
|
39 |
pip install --upgrade gradio && \
|
40 |
touch .env/ok
|
41 |
|
app.py
CHANGED
@@ -31,6 +31,8 @@ FILTER_SUFFIX = "_DeepFilterNet3.wav"
|
|
31 |
os.makedirs(OUTPUT_DIR, exist_ok=True)
|
32 |
|
33 |
|
|
|
|
|
34 |
def clear_gpu_cache():
|
35 |
if torch.cuda.is_available():
|
36 |
torch.cuda.empty_cache()
|
@@ -316,14 +318,12 @@ if __name__ == "__main__":
|
|
316 |
REFERENCE_AUDIO = os.path.join(SCRIPT_DIR, "assets", "vixtts_sample_female.wav")
|
317 |
if args.reference_audio:
|
318 |
REFERENCE_AUDIO = os.abspath(args.reference_audio)
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
"""
|
326 |
-
_js()
|
327 |
intro = """
|
328 |
Ủng hộ chúng mình: Momo(0383253638)
|
329 |
"""
|
|
|
31 |
os.makedirs(OUTPUT_DIR, exist_ok=True)
|
32 |
|
33 |
|
34 |
+
|
35 |
+
|
36 |
def clear_gpu_cache():
|
37 |
if torch.cuda.is_available():
|
38 |
torch.cuda.empty_cache()
|
|
|
318 |
REFERENCE_AUDIO = os.path.join(SCRIPT_DIR, "assets", "vixtts_sample_female.wav")
|
319 |
if args.reference_audio:
|
320 |
REFERENCE_AUDIO = os.abspath(args.reference_audio)
|
321 |
+
js_func = """
|
322 |
+
function darkMode() {
|
323 |
+
document.body.classList.add('dark');
|
324 |
+
}
|
325 |
+
"""
|
326 |
+
with gr.Blocks(theme='NoCrypt/miku', js=js_func) as demo:
|
|
|
|
|
327 |
intro = """
|
328 |
Ủng hộ chúng mình: Momo(0383253638)
|
329 |
"""
|