Load native Applio source in resident inference worker
This commit is contained in:
1 parent
9069647508
commit
83cd31878c
2 files changed
+12
-1
No files matched your search
@@ -11,6 +11,9 @@ def main():
|
||||
bind_parent()
|
||||
if len(sys.argv)>1 and sys.argv[1]=="--exec":
|
||||
os.execv(sys.argv[2],sys.argv[2:])
|
||||
# A script launched from /app does not add its runtime working directory
|
||||
# to Python's import path. RVC lives in the separately installed source tree.
|
||||
sys.path.insert(0,os.environ.get('APPLIO_WORKDIR',os.getcwd()))
|
||||
with contextlib.redirect_stdout(sys.stderr):
|
||||
from rvc.infer.infer import VoiceConverter
|
||||
converter=VoiceConverter()
|
||||
|
||||
Reference in new issue
Block a user