Gregniuki commited on
Commit
e0ba99f
1 Parent(s): 94e1bae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,7 +28,7 @@ import ipywidgets as widgets
28
  from IPython.display import display, Audio, Markdown, clear_output
29
  from piper_phonemize import phonemize_codepoints, phonemize_espeak, tashkeel_run
30
 
31
- #_LOGGER = logging.getLogger("piper_train.infer_onnx")
32
  import os
33
  if not os.path.exists("/content/piper/src/python/lng"):
34
  import subprocess
@@ -77,6 +77,7 @@ def detect_onnx_models(path):
77
 
78
  def main():
79
  """Main entry point"""
 
80
  models_path = "/content/piper/src/python"
81
  logging.basicConfig(level=logging.DEBUG)
82
  providers = [
@@ -411,7 +412,6 @@ def transform(input_data):
411
 
412
  return magnitude, phase
413
 
414
- sys.path.append('/content/piper/src/python')
415
 
416
 
417
  # Create an instance of the FastAPI class
 
28
  from IPython.display import display, Audio, Markdown, clear_output
29
  from piper_phonemize import phonemize_codepoints, phonemize_espeak, tashkeel_run
30
 
31
+ _LOGGER = logging.getLogger("piper_train.infer_onnx")
32
  import os
33
  if not os.path.exists("/content/piper/src/python/lng"):
34
  import subprocess
 
77
 
78
  def main():
79
  """Main entry point"""
80
+ sys.path.append('/content/piper/src/python')
81
  models_path = "/content/piper/src/python"
82
  logging.basicConfig(level=logging.DEBUG)
83
  providers = [
 
412
 
413
  return magnitude, phase
414
 
 
415
 
416
 
417
  # Create an instance of the FastAPI class