Spaces:
Runtime error
Runtime error
Commit ·
8822333
1
Parent(s): 0ab4278
Update app.py
Browse files
app.py
CHANGED
|
@@ -113,7 +113,7 @@ def extend(audio):
|
|
| 113 |
|
| 114 |
# denoise
|
| 115 |
|
| 116 |
-
def
|
| 117 |
voicefixer.restore(input=audio.name, # input wav file path
|
| 118 |
output="output.wav", # output wav file path
|
| 119 |
cuda=False, # whether to use gpu acceleration
|
|
@@ -143,7 +143,7 @@ with app:
|
|
| 143 |
btn.click(fn=infer, inputs=[inp], outputs=[out])
|
| 144 |
btn1.click(fn=infer1, inputs=[inp], outputs=[out])
|
| 145 |
btn2.click(fn=extend, inputs=[out], outputs=[out1])
|
| 146 |
-
btn2.click(fn=
|
| 147 |
|
| 148 |
gr.Markdown("### <center>注意❗:请不要生成会对个人以及组织造成侵害的内容,此程序仅供科研、学习及个人娱乐使用。</center>")
|
| 149 |
gr.HTML('''
|
|
|
|
| 113 |
|
| 114 |
# denoise
|
| 115 |
|
| 116 |
+
def inference_denoise(audio):
|
| 117 |
voicefixer.restore(input=audio.name, # input wav file path
|
| 118 |
output="output.wav", # output wav file path
|
| 119 |
cuda=False, # whether to use gpu acceleration
|
|
|
|
| 143 |
btn.click(fn=infer, inputs=[inp], outputs=[out])
|
| 144 |
btn1.click(fn=infer1, inputs=[inp], outputs=[out])
|
| 145 |
btn2.click(fn=extend, inputs=[out], outputs=[out1])
|
| 146 |
+
btn2.click(fn=inference_denoise, inputs=[out1], outputs=[out2])
|
| 147 |
|
| 148 |
gr.Markdown("### <center>注意❗:请不要生成会对个人以及组织造成侵害的内容,此程序仅供科研、学习及个人娱乐使用。</center>")
|
| 149 |
gr.HTML('''
|