cjayic commited on
Commit
c0d60e2
1 Parent(s): f664937

clean up debug prints

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -35,17 +35,12 @@ def infer(md, mic_audio, audio, speaker_id, pitch_shift, length_scale, noise_sca
35
 
36
  if mic_audio:
37
  sr, source = mic_audio
38
-
39
  source = torch.Tensor(source)
40
- print(source.dim())
41
-
42
  if source.dim() == 1:
43
- print("unsqueezing")
44
  source = source.unsqueeze(1)
45
 
46
  source = source.T
47
-
48
- print(source.shape)
49
 
50
  if audio:
51
  source, sr = torchaudio.load(audio)
 
35
 
36
  if mic_audio:
37
  sr, source = mic_audio
 
38
  source = torch.Tensor(source)
39
+
 
40
  if source.dim() == 1:
 
41
  source = source.unsqueeze(1)
42
 
43
  source = source.T
 
 
44
 
45
  if audio:
46
  source, sr = torchaudio.load(audio)