Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -368,15 +368,13 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
|
|
| 368 |
process_btn.click(
|
| 369 |
fn=process_audio,
|
| 370 |
inputs=[audio_input, noise_reduction],
|
| 371 |
-
outputs=[audio_output, info_output]
|
| 372 |
-
api_name="denoise"
|
| 373 |
)
|
| 374 |
|
| 375 |
demo_btn.click(
|
| 376 |
fn=generate_demo_audio,
|
| 377 |
inputs=[],
|
| 378 |
-
outputs=[audio_input]
|
| 379 |
-
api_name="demo"
|
| 380 |
)
|
| 381 |
|
| 382 |
# Footer
|
|
@@ -406,5 +404,4 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
|
|
| 406 |
|
| 407 |
# Launch configuration
|
| 408 |
if __name__ == "__main__":
|
| 409 |
-
demo.queue()
|
| 410 |
demo.launch()
|
|
|
|
| 368 |
process_btn.click(
|
| 369 |
fn=process_audio,
|
| 370 |
inputs=[audio_input, noise_reduction],
|
| 371 |
+
outputs=[audio_output, info_output]
|
|
|
|
| 372 |
)
|
| 373 |
|
| 374 |
demo_btn.click(
|
| 375 |
fn=generate_demo_audio,
|
| 376 |
inputs=[],
|
| 377 |
+
outputs=[audio_input]
|
|
|
|
| 378 |
)
|
| 379 |
|
| 380 |
# Footer
|
|
|
|
| 404 |
|
| 405 |
# Launch configuration
|
| 406 |
if __name__ == "__main__":
|
|
|
|
| 407 |
demo.launch()
|