Kevin676 commited on
Commit
2c7e417
1 Parent(s): 8cd7a5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -76,14 +76,7 @@ def chinese(text_cn, upload1, VoiceMicrophone1):
76
  file_path="ouptut1.wav"
77
  )
78
 
79
- noisy = enhance_model.load_audio(
80
- "output1.wav"
81
- ).unsqueeze(0)
82
-
83
- enhanced = enhance_model.enhance_batch(noisy, lengths=torch.tensor([1.]))
84
- torchaudio.save("enhanced1.wav", enhanced.cpu(), 16000)
85
-
86
- return "enhanced1.wav"
87
 
88
  block = gr.Blocks()
89
 
 
76
  file_path="ouptut1.wav"
77
  )
78
 
79
+ return "ouptut1.wav"
 
 
 
 
 
 
 
80
 
81
  block = gr.Blocks()
82