Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -76,14 +76,7 @@ def chinese(text_cn, upload1, VoiceMicrophone1):
|
|
76 |
file_path="ouptut1.wav"
|
77 |
)
|
78 |
|
79 |
-
|
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 |
|