fantasyfish commited on
Commit
356b3b9
·
1 Parent(s): a2a7890

Update inference server when index file not found

Browse files
Files changed (2) hide show
  1. inference_server/server.py +1 -2
  2. third_party/RVC +1 -1
inference_server/server.py CHANGED
@@ -51,8 +51,7 @@ def inference():
51
  save_path = os.path.join('/outputDir', save_file_name)
52
  error_log_path = os.path.join("/logs{}.log".format(exp_name))
53
  index_path_list = glob("/third_party/RVC/logs/{}/added_IVF*_Flat_nprobe_1_v1.index".format(exp_name))
54
- assert(len(index_path_list) == 1), "Index file not found"
55
- index_path = index_path_list[0]
56
 
57
  start_time = time.time()
58
  model_inference_single(model_path, index_path, audio_path, save_path, error_log_path, pitch_shift)
 
51
  save_path = os.path.join('/outputDir', save_file_name)
52
  error_log_path = os.path.join("/logs{}.log".format(exp_name))
53
  index_path_list = glob("/third_party/RVC/logs/{}/added_IVF*_Flat_nprobe_1_v1.index".format(exp_name))
54
+ index_path = index_path_list[0] if len(index_path_list) > 0 else ""
 
55
 
56
  start_time = time.time()
57
  model_inference_single(model_path, index_path, audio_path, save_path, error_log_path, pitch_shift)
third_party/RVC CHANGED
@@ -1 +1 @@
1
- Subproject commit 34bc87c03a51b963e13a6dfb188f3d5f54c6647d
 
1
+ Subproject commit 689594b28ab8bda664201f0278155d5ab3398d27