File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,19 @@ def process_rvc():
252
252
253
253
logger .info (f"Model files found: model={ model_path } , index={ index_path } " )
254
254
255
+ # Set the index_root environment variable if not already set
256
+ if not os .getenv ("index_root" ):
257
+ os .environ ["index_root" ] = "/app/logs"
258
+ logger .info (f"Setting index_root environment variable to: /app/logs" )
259
+
260
+ if not os .getenv ("weight_root" ):
261
+ os .environ ["weight_root" ] = "/app/weights"
262
+ logger .info (f"Setting weight_root environment variable to: /app/weights" )
263
+
264
+ if not os .getenv ("rmvpe_root" ):
265
+ os .environ ["rmvpe_root" ] = "/app/assets/rmvpe"
266
+ logger .info (f"Setting rmvpe_root environment variable to: /app/assets/rmvpe" )
267
+
255
268
# Construct RVC command
256
269
rvc_command = [
257
270
"python" , "tools/infer_cli.py" ,
You can’t perform that action at this time.
0 commit comments