Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ with gr.Blocks(title="🎹 MIDI-AudioLDM", theme=gr.themes.Base(text_size=gr.the
|
|
40 |
midi = gr.File(label="midi file", file_types=[".mid"])
|
41 |
prompt = gr.Textbox(label="prompt")
|
42 |
neg_prompt = gr.Textbox(label="negative prompt")
|
43 |
-
with gr.Accordion("Advanced
|
44 |
duration = gr.Slider(0, 30, value=5, step=5, label="duration (seconds)")
|
45 |
seed = gr.Number(value=42, label="seed")
|
46 |
cond = gr.Slider(0.0, 1.0, value=1.0, step=0.1, label="conditioning scale")
|
@@ -50,7 +50,7 @@ with gr.Blocks(title="🎹 MIDI-AudioLDM", theme=gr.themes.Base(text_size=gr.the
|
|
50 |
audio = gr.Audio(label="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=(examples=[["S00.mid", "piano", "", 10, 25, 1.0, 20, False]], input=[midi, prompt, neg_prompt, duration, seed, cond, inf, guess], cache_examples=True)
|
54 |
|
55 |
# demo = gr.Interface(
|
56 |
# fn=predict, inputs=[
|
|
|
40 |
midi = gr.File(label="midi file", file_types=[".mid"])
|
41 |
prompt = gr.Textbox(label="prompt")
|
42 |
neg_prompt = gr.Textbox(label="negative prompt")
|
43 |
+
with gr.Accordion("Advanced settings"):
|
44 |
duration = gr.Slider(0, 30, value=5, step=5, label="duration (seconds)")
|
45 |
seed = gr.Number(value=42, label="seed")
|
46 |
cond = gr.Slider(0.0, 1.0, value=1.0, step=0.1, label="conditioning scale")
|
|
|
50 |
audio = gr.Audio(label="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=(examples=[["S00.mid", "piano", "", 10, 25, 1.0, 20, False]], input=[midi, prompt, neg_prompt, duration, seed, cond, inf, guess], cache_examples=True)
|
54 |
|
55 |
# demo = gr.Interface(
|
56 |
# fn=predict, inputs=[
|