Ahsen Khaliq commited on
Commit
7a9ed86
1 Parent(s): 3cb3114

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -14,7 +14,11 @@ shutil.move('VQMIVC-pretrained models/vocoder/', '.')
14
 
15
 
16
  def inference(audio1, audio2):
17
- os.system("python convert_example.py -s "+ audio1.name+" -r "+ audio2.name+ " -c converted -m 'checkpoints/useCSMITrue_useCPMITrue_usePSMITrue_useAmpTrue/VQMIVC-model.ckpt-500.pt'")
 
 
 
 
18
  out = os.path.basename(str(audio1)).split(".")[0] + "_converted_gen.wav"
19
  return out
20
 
 
14
 
15
 
16
  def inference(audio1, audio2):
17
+
18
+ os.rename(audio1.name, '1.wav')
19
+ os.rename(audio2.name, '2.wav')
20
+ os.system('ls')
21
+ os.system("python convert_example.py -s 1.wav -r 2.wav -c converted -m 'checkpoints/useCSMITrue_useCPMITrue_usePSMITrue_useAmpTrue/VQMIVC-model.ckpt-500.pt'")
22
  out = os.path.basename(str(audio1)).split(".")[0] + "_converted_gen.wav"
23
  return out
24