Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -222,6 +222,15 @@ with gr.Blocks() as demo:
|
|
| 222 |
output_residual = gr.Audio(label="Background (Residual)", type="filepath")
|
| 223 |
status_out = gr.Textbox(label="Status", interactive=False, show_label=True, lines=8)
|
| 224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 225 |
run_btn.click(
|
| 226 |
fn=process_audio,
|
| 227 |
inputs=[input_file, text_prompt, chunk_duration_slider],
|
|
|
|
| 222 |
output_residual = gr.Audio(label="Background (Residual)", type="filepath")
|
| 223 |
status_out = gr.Textbox(label="Status", interactive=False, show_label=True, lines=8)
|
| 224 |
|
| 225 |
+
gr.Examples(
|
| 226 |
+
examples=[
|
| 227 |
+
["example_audio/speech.wav", "A man speaking", 30],
|
| 228 |
+
["example_audio/nature.wav", "Birds chirping", 30]
|
| 229 |
+
],
|
| 230 |
+
inputs=[input_file, text_prompt, chunk_duration_slider],
|
| 231 |
+
label="Audio Examples"
|
| 232 |
+
)
|
| 233 |
+
|
| 234 |
run_btn.click(
|
| 235 |
fn=process_audio,
|
| 236 |
inputs=[input_file, text_prompt, chunk_duration_slider],
|