Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,8 +49,8 @@ with gr.Blocks(title="🎹 MIDI-AudioLDM", theme=gr.themes.Base(text_size=gr.the
|
|
49 |
with gr.Column():
|
50 |
audio = "audio"
|
51 |
btn = gr.Button("Generate")
|
52 |
-
btn.click(predict, inputs=[midi, prompt, neg_prompt, duration, seed, cond, inf, guess], outputs=[audio]
|
53 |
-
gr.Examples=([["S00.mid", "piano", "", 10, 25, 1.0, 20, False]])
|
54 |
|
55 |
# demo = gr.Interface(
|
56 |
# fn=predict, inputs=[
|
|
|
49 |
with gr.Column():
|
50 |
audio = "audio"
|
51 |
btn = gr.Button("Generate")
|
52 |
+
btn.click(predict, inputs=[midi, prompt, neg_prompt, duration, seed, cond, inf, guess], outputs=[audio])
|
53 |
+
gr.Examples=([["S00.mid", "piano", "", 10, 25, 1.0, 20, False]], cache_examples=True)
|
54 |
|
55 |
# demo = gr.Interface(
|
56 |
# fn=predict, inputs=[
|