Skip to content

Commit

Permalink
update: logging level
Browse files Browse the repository at this point in the history
  • Loading branch information
Artrajz committed Jul 9, 2023
1 parent 5030343 commit 9326a38
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
'CRITICAL': logging.CRITICAL}
logging.basicConfig(level=level_dict[level])
logging.getLogger('numba').setLevel(logging.WARNING)
logging.getLogger("langid.langid").setLevel(logging.INFO)
logging.getLogger("apscheduler.scheduler").setLevel(logging.INFO)

tts = merge_model(app.config["MODEL_LIST"])

Expand Down Expand Up @@ -139,7 +141,7 @@ def voice_vits_api():
"max": max,
"lang": lang,
"speaker_lang": speaker_lang}

if app.config.get("SAVE_AUDIO", False):
logger.debug(f"[VITS] {fname}")

Expand Down Expand Up @@ -287,7 +289,7 @@ def voice_w2v2_api():
"lang": lang,
"emotion": emotion,
"speaker_lang": speaker_lang}

t1 = time.time()
audio = tts.w2v2_vits_infer(task, fname)
t2 = time.time()
Expand Down

0 comments on commit 9326a38

Please sign in to comment.