Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
96a2826
1
Parent(s):
696e7d4
Update app.py
Browse files
app.py
CHANGED
@@ -72,14 +72,16 @@ def inference(audio):
|
|
72 |
|
73 |
title = "SpecVQGAN Neural Audio Codec"
|
74 |
description = "Gradio demo for Spectrogram VQGAN as a Neural Audio Codec. To use it, simply add your audio, or click one of the examples to load them. Read more at the links below."
|
75 |
-
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2110.08791'>Taming Visually Guided Sound Generation</a> | <a href='https://github.com/v-iashin/SpecVQGAN'>Github Repo</a></p>"
|
76 |
|
|
|
77 |
gr.Interface(
|
78 |
inference,
|
79 |
gr.inputs.Audio(type="file", label="Input Audio"),
|
80 |
-
[gr.outputs.Audio(type="file", label="Original audio"),gr.outputs.Audio(type="file", label="Reconstructed audio"),"plot","plot"],
|
81 |
title=title,
|
82 |
description=description,
|
83 |
article=article,
|
84 |
-
enable_queue=True
|
|
|
85 |
).launch(debug=True)
|
|
|
72 |
|
73 |
title = "SpecVQGAN Neural Audio Codec"
|
74 |
description = "Gradio demo for Spectrogram VQGAN as a Neural Audio Codec. To use it, simply add your audio, or click one of the examples to load them. Read more at the links below."
|
75 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2110.08791' target='_blank'>Taming Visually Guided Sound Generation</a> | <a href='https://github.com/v-iashin/SpecVQGAN' target='_blank'>Github Repo</a></p>"
|
76 |
|
77 |
+
examples=[['example.wav']]
|
78 |
gr.Interface(
|
79 |
inference,
|
80 |
gr.inputs.Audio(type="file", label="Input Audio"),
|
81 |
+
[gr.outputs.Audio(type="file", label="Original audio"),gr.outputs.Audio(type="file", label="Reconstructed audio"),gr.outputs.Image(type="plot", label="Original Spectrogram:"),gr.outputs.Image(type="plot",label="Reconstructed Spectrogram:")],
|
82 |
title=title,
|
83 |
description=description,
|
84 |
article=article,
|
85 |
+
enable_queue=True,
|
86 |
+
examples=examples
|
87 |
).launch(debug=True)
|