Spaces:
Runtime error
Runtime error
Commit
·
2dcc83a
1
Parent(s):
8617a0d
log
Browse files
webui.py
CHANGED
|
@@ -24,7 +24,7 @@ import numpy as np
|
|
| 24 |
from config import config
|
| 25 |
from tools.translate import translate
|
| 26 |
import librosa
|
| 27 |
-
|
| 28 |
net_g = None
|
| 29 |
|
| 30 |
device = config.webui_config.device
|
|
@@ -128,6 +128,7 @@ def tts_split(
|
|
| 128 |
reference_audio,
|
| 129 |
emotion,
|
| 130 |
):
|
|
|
|
| 131 |
if language == "mix":
|
| 132 |
return ("invalid", None)
|
| 133 |
while text.find("\n\n") != -1:
|
|
@@ -211,6 +212,7 @@ def tts_fn(
|
|
| 211 |
emotion,
|
| 212 |
prompt_mode,
|
| 213 |
):
|
|
|
|
| 214 |
if prompt_mode == "Audio prompt":
|
| 215 |
if reference_audio == None:
|
| 216 |
return ("Invalid audio prompt", None)
|
|
|
|
| 24 |
from config import config
|
| 25 |
from tools.translate import translate
|
| 26 |
import librosa
|
| 27 |
+
import tools.log
|
| 28 |
net_g = None
|
| 29 |
|
| 30 |
device = config.webui_config.device
|
|
|
|
| 128 |
reference_audio,
|
| 129 |
emotion,
|
| 130 |
):
|
| 131 |
+
tools.log.logger.info(f"text: {text}, \n\t sdp: {sdp_ratio}, lang: {language}")
|
| 132 |
if language == "mix":
|
| 133 |
return ("invalid", None)
|
| 134 |
while text.find("\n\n") != -1:
|
|
|
|
| 212 |
emotion,
|
| 213 |
prompt_mode,
|
| 214 |
):
|
| 215 |
+
tools.log.logger.info(f"text: {text}, \n\t sdp: {sdp_ratio}, lang: {language}, prompt: {prompt_mode}")
|
| 216 |
if prompt_mode == "Audio prompt":
|
| 217 |
if reference_audio == None:
|
| 218 |
return ("Invalid audio prompt", None)
|