chong.zhang commited on
Commit
6a854fa
·
1 Parent(s): a382083
Files changed (1) hide show
  1. inspiremusic/cli/inference.py +1 -2
inspiremusic/cli/inference.py CHANGED
@@ -26,8 +26,7 @@ from inspiremusic.utils.audio_utils import trim_audio, fade_out
26
  def set_env_variables():
27
  os.environ['PYTHONIOENCODING'] = 'UTF-8'
28
  os.environ['TOKENIZERS_PARALLELISM'] = 'False'
29
- current_working_dir = os.getcwd()
30
- main_root = os.path.realpath(os.path.join(current_working_dir, './'))
31
  bin_dir = os.path.join(main_root, 'inspiremusic')
32
  third_party_matcha_tts_path = os.path.join(main_root, 'third_party', 'Matcha-TTS')
33
  python_path = f"{main_root}:{bin_dir}:{third_party_matcha_tts_path}:{os.environ.get('PYTHONPATH', '')}"
 
26
  def set_env_variables():
27
  os.environ['PYTHONIOENCODING'] = 'UTF-8'
28
  os.environ['TOKENIZERS_PARALLELISM'] = 'False'
29
+ main_root = os.getcwd()
 
30
  bin_dir = os.path.join(main_root, 'inspiremusic')
31
  third_party_matcha_tts_path = os.path.join(main_root, 'third_party', 'Matcha-TTS')
32
  python_path = f"{main_root}:{bin_dir}:{third_party_matcha_tts_path}:{os.environ.get('PYTHONPATH', '')}"