Spaces:
Runtime error
Runtime error
Vaibhav Srivastav
commited on
Commit
·
e7e0ccd
1
Parent(s):
4046745
up
Browse files
app.py
CHANGED
@@ -41,8 +41,6 @@ description = """
|
|
41 |
Bark is a universal text-to-audio model created by [Suno](www.suno.ai), with code publicly available [here](https://github.com/suno-ai/bark). \
|
42 |
Bark can generate highly realistic, multilingual speech as well as other audio - including music, background noise and simple sound effects. \
|
43 |
In this demo, we leverage charactr.ai's Vocos model to create high quality audio from bark. \
|
44 |
-
The model output is not censored and the authors do not endorse the opinions in the generated content. \
|
45 |
-
Use at your own risk.
|
46 |
"""
|
47 |
|
48 |
# import model
|
@@ -82,18 +80,17 @@ with gr.Blocks() as demo_blocks:
|
|
82 |
gr.Markdown(title)
|
83 |
gr.Markdown(description)
|
84 |
with gr.Column():
|
85 |
-
inp_text = gr.Textbox(label="
|
86 |
spk = gr.Dropdown(
|
87 |
speaker_embeddings,
|
88 |
value=None,
|
89 |
-
label="
|
90 |
-
info="Default:
|
91 |
)
|
92 |
btn = gr.Button("Synthesise speech!")
|
93 |
|
94 |
with gr.Column():
|
95 |
-
out_audio_vocos = gr.Audio(type="numpy", autoplay=False, label="
|
96 |
-
|
97 |
btn.click(generate_audio, [inp_text, spk], [out_audio_vocos])
|
98 |
|
99 |
demo_blocks.queue().launch(debug=True)
|
|
|
41 |
Bark is a universal text-to-audio model created by [Suno](www.suno.ai), with code publicly available [here](https://github.com/suno-ai/bark). \
|
42 |
Bark can generate highly realistic, multilingual speech as well as other audio - including music, background noise and simple sound effects. \
|
43 |
In this demo, we leverage charactr.ai's Vocos model to create high quality audio from bark. \
|
|
|
|
|
44 |
"""
|
45 |
|
46 |
# import model
|
|
|
80 |
gr.Markdown(title)
|
81 |
gr.Markdown(description)
|
82 |
with gr.Column():
|
83 |
+
inp_text = gr.Textbox(label="Input Text", info="What would you like bark to synthesise?")
|
84 |
spk = gr.Dropdown(
|
85 |
speaker_embeddings,
|
86 |
value=None,
|
87 |
+
label="Acoustic Prompt",
|
88 |
+
info="Default: Unconditional Generation"
|
89 |
)
|
90 |
btn = gr.Button("Synthesise speech!")
|
91 |
|
92 |
with gr.Column():
|
93 |
+
out_audio_vocos = gr.Audio(type="numpy", autoplay=False, label="Generated Audio", show_label=True)
|
|
|
94 |
btn.click(generate_audio, [inp_text, spk], [out_audio_vocos])
|
95 |
|
96 |
demo_blocks.queue().launch(debug=True)
|