Artrajz commited on
Commit
ea294dc
1 Parent(s): bd5f307
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -26,6 +26,8 @@ level_dict = {'DEBUG': logging.DEBUG, 'INFO': logging.INFO, 'WARNING': logging.W
26
  'CRITICAL': logging.CRITICAL}
27
  logging.basicConfig(level=level_dict[level])
28
  logging.getLogger('numba').setLevel(logging.WARNING)
 
 
29
 
30
  tts = merge_model(app.config["MODEL_LIST"])
31
 
@@ -139,7 +141,7 @@ def voice_vits_api():
139
  "max": max,
140
  "lang": lang,
141
  "speaker_lang": speaker_lang}
142
-
143
  if app.config.get("SAVE_AUDIO", False):
144
  logger.debug(f"[VITS] {fname}")
145
 
@@ -287,7 +289,7 @@ def voice_w2v2_api():
287
  "lang": lang,
288
  "emotion": emotion,
289
  "speaker_lang": speaker_lang}
290
-
291
  t1 = time.time()
292
  audio = tts.w2v2_vits_infer(task, fname)
293
  t2 = time.time()
 
26
  'CRITICAL': logging.CRITICAL}
27
  logging.basicConfig(level=level_dict[level])
28
  logging.getLogger('numba').setLevel(logging.WARNING)
29
+ logging.getLogger("langid.langid").setLevel(logging.INFO)
30
+ logging.getLogger("apscheduler.scheduler").setLevel(logging.INFO)
31
 
32
  tts = merge_model(app.config["MODEL_LIST"])
33
 
 
141
  "max": max,
142
  "lang": lang,
143
  "speaker_lang": speaker_lang}
144
+
145
  if app.config.get("SAVE_AUDIO", False):
146
  logger.debug(f"[VITS] {fname}")
147
 
 
289
  "lang": lang,
290
  "emotion": emotion,
291
  "speaker_lang": speaker_lang}
292
+
293
  t1 = time.time()
294
  audio = tts.w2v2_vits_infer(task, fname)
295
  t2 = time.time()