Approximetal commited on
Commit
e05d0ba
·
verified ·
1 Parent(s): 6e31617

Update inference_gradio.py

Browse files
Files changed (1) hide show
  1. inference_gradio.py +1 -5
inference_gradio.py CHANGED
@@ -56,11 +56,7 @@ class UVR5:
56
 
57
  if self.code_dir not in sys.path:
58
  sys.path.append(self.code_dir)
59
-
60
- # Reuse an already-loaded model if it matches the requested device.
61
- if self.model is not None:
62
- return self.model
63
-
64
  from multiprocess_cuda_infer import ModelData, Inference
65
 
66
  model_path = os.path.join(self.model_dir, "Kim_Vocal_1.onnx")
 
56
 
57
  if self.code_dir not in sys.path:
58
  sys.path.append(self.code_dir)
59
+
 
 
 
 
60
  from multiprocess_cuda_infer import ModelData, Inference
61
 
62
  model_path = os.path.join(self.model_dir, "Kim_Vocal_1.onnx")