Spaces:
Build error
Build error
Update app_rvc.py
Browse files- app_rvc.py +2 -7
app_rvc.py
CHANGED
|
@@ -1,15 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import os
|
| 3 |
-
os.system("pip install -q
|
| 4 |
-
os.system("pip install -q sherpa-onnx==1.9.12")
|
| 5 |
-
os.system("pip install -q piper-tts==1.2.0 --no-deps")
|
| 6 |
os.system("pip install -q -r requirements_xtts.txt")
|
| 7 |
os.system("pip install -q TTS==0.21.1 --no-deps")
|
| 8 |
import spaces
|
| 9 |
-
import torch
|
| 10 |
-
if os.environ.get("ZERO_GPU") != "TRUE" and torch.cuda.is_available():
|
| 11 |
-
# onnxruntime GPU
|
| 12 |
-
os.system("pip install ort-nightly-gpu --index-url=https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ort-cuda-12-nightly/pypi/simple/")
|
| 13 |
import librosa
|
| 14 |
from soni_translate.logging_setup import (
|
| 15 |
logger,
|
|
@@ -17,6 +11,7 @@ from soni_translate.logging_setup import (
|
|
| 17 |
configure_logging_libs,
|
| 18 |
); configure_logging_libs() # noqa
|
| 19 |
import whisperx
|
|
|
|
| 20 |
import os
|
| 21 |
from soni_translate.audio_segments import create_translated_audio
|
| 22 |
from soni_translate.text_to_speech import (
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import os
|
| 3 |
+
os.system("pip install -q piper-tts==1.2.0")
|
|
|
|
|
|
|
| 4 |
os.system("pip install -q -r requirements_xtts.txt")
|
| 5 |
os.system("pip install -q TTS==0.21.1 --no-deps")
|
| 6 |
import spaces
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
import librosa
|
| 8 |
from soni_translate.logging_setup import (
|
| 9 |
logger,
|
|
|
|
| 11 |
configure_logging_libs,
|
| 12 |
); configure_logging_libs() # noqa
|
| 13 |
import whisperx
|
| 14 |
+
import torch
|
| 15 |
import os
|
| 16 |
from soni_translate.audio_segments import create_translated_audio
|
| 17 |
from soni_translate.text_to_speech import (
|