Update app.py
Browse files
app.py
CHANGED
@@ -23,11 +23,11 @@ def speechbrain(input_obj, input_obj_type):
|
|
23 |
|
24 |
def main():
|
25 |
with gr.Blocks(title="Speech Enhancement", delete_cache=(86400, 86400), theme=gr.themes.Base()) as demo:
|
26 |
-
|
27 |
-
|
28 |
-
examples = [
|
29 |
-
|
30 |
-
]
|
31 |
with gr.Tabs(selected="video") as tabs:
|
32 |
with gr.Tab("Video", id="video"):
|
33 |
gr.Interface(
|
@@ -38,10 +38,7 @@ def main():
|
|
38 |
],
|
39 |
outputs= [
|
40 |
gr.Audio(label="Output Audio", type="filepath")
|
41 |
-
]
|
42 |
-
description=description,
|
43 |
-
article=article,
|
44 |
-
examples=examples
|
45 |
)
|
46 |
with gr.Tab("Audio", id="audio"):
|
47 |
gr.Interface(
|
@@ -52,12 +49,9 @@ def main():
|
|
52 |
],
|
53 |
outputs=[
|
54 |
gr.Audio(label="Output Audio", type="filepath")
|
55 |
-
]
|
56 |
-
description=description,
|
57 |
-
article=article,
|
58 |
-
examples=examples
|
59 |
)
|
60 |
-
|
61 |
|
62 |
if __name__ == '__main__':
|
63 |
main()
|
|
|
23 |
|
24 |
def main():
|
25 |
with gr.Blocks(title="Speech Enhancement", delete_cache=(86400, 86400), theme=gr.themes.Base()) as demo:
|
26 |
+
gr.Markdown("Gradio demo for Speech Enhancement by SpeechBrain. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below.")
|
27 |
+
gr.Markdown("<p style='text-align: center'><a href='https://arxiv.org/abs/2010.13154' target='_blank'>Attention is All You Need in Speech Separation</a> | <a href='https://github.com/speechbrain/speechbrain/tree/develop/templates/enhancement' '_blank'>Github Repo</a></p>")
|
28 |
+
# examples = [
|
29 |
+
# ['samples_audio_samples_test_mixture.wav']
|
30 |
+
# ]
|
31 |
with gr.Tabs(selected="video") as tabs:
|
32 |
with gr.Tab("Video", id="video"):
|
33 |
gr.Interface(
|
|
|
38 |
],
|
39 |
outputs= [
|
40 |
gr.Audio(label="Output Audio", type="filepath")
|
41 |
+
]
|
|
|
|
|
|
|
42 |
)
|
43 |
with gr.Tab("Audio", id="audio"):
|
44 |
gr.Interface(
|
|
|
49 |
],
|
50 |
outputs=[
|
51 |
gr.Audio(label="Output Audio", type="filepath")
|
52 |
+
]
|
|
|
|
|
|
|
53 |
)
|
54 |
+
demo.launch()
|
55 |
|
56 |
if __name__ == '__main__':
|
57 |
main()
|